mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-12-26 07:49:27 +01:00
12 lines
454 B
HTML
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>
|