cullmann.io/themes/LoveIt/layouts/_default/_markup/render-image.html

11 lines
420 B
HTML
Raw Normal View History

2021-02-18 21:44:01 +01:00
{{- if .Title -}}
<figure>
{{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/img.html" -}}
2021-02-18 21:44:01 +01:00
<figcaption class="image-caption">
{{- .Title | safeHTML -}}
</figcaption>
</figure>
{{- else -}}
{{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/img.html" -}}
2021-02-18 21:44:01 +01:00
{{- end -}}