blog/static/themes/hello-friend/layouts/partials/postcover.html
Mathieu Broillet 30a29a3a11
All checks were successful
continuous-integration/drone/push Build is passing
started migration from joplin
2023-06-11 16:09:07 +02:00

12 lines
454 B
HTML

<figure class="post-cover">
{{ if .Params.UseRelativeCover }}
<img src="{{ (printf "%s%s" .Permalink .Params.Cover ) }}" alt="{{ .Params.CoverAlt | plainify | default .Title }}"/>
{{ else }}
<img src="{{ .Params.Cover | absURL }}" alt="{{ .Params.CoverAlt | plainify | default .Title }}"/>
{{ end }}
{{ if .Params.CoverCaption }}
<figcaption class="center">{{ .Params.CoverCaption | markdownify }}</figcaption>
{{ end }}
</figure>