added fig caption to images

This commit is contained in:
constantinos 2023-08-15 18:49:20 +03:00
parent 828554683b
commit 1760c5b014

View file

@ -60,6 +60,9 @@
{{ if .Text }}
<figcaption> {{with .Text }} {{ . }} {{end}}</figcaption> <!-- ALT becomes caption. Title becomes moouse over text.-->
{{ end }}
{{- else -}} <!-- else-->
{{- else -}} <!-- else; EDIT TO COVER IMGs in STATIC via link that does not include /static/-->
<img src="{{- .Destination | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} />
{{ if .Text }}
<figcaption> {{with .Text }} {{ . }} {{end}}</figcaption> <!-- ALT becomes caption. Title becomes moouse over text.-->
{{ end }}
{{- end -}}