mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
10 lines
358 B
HTML
10 lines
358 B
HTML
{{- with .Title -}}
|
|
<figure>
|
|
{{- dict "src" $.Destination "alt" $.Text "caption" . "linked" true | partial "plugin/image.html" -}}
|
|
<figcaption class="image-caption">
|
|
{{- . | safeHTML -}}
|
|
</figcaption>
|
|
</figure>
|
|
{{- else -}}
|
|
{{- dict "src" .Destination "alt" .Text | partial "plugin/image.html" -}}
|
|
{{- end -}}
|