2022-12-17 07:30:26 +01:00
|
|
|
<!--
|
2023-04-13 18:38:41 +02:00
|
|
|
id: id of the figure
|
2022-12-17 07:30:26 +01:00
|
|
|
class: class of the figure
|
|
|
|
link: url the image directs to
|
|
|
|
alt: alternative text
|
|
|
|
caption: caption
|
2023-04-13 18:38:41 +02:00
|
|
|
title: what the image says when moused over ("title" in HTML)
|
2022-12-17 07:30:26 +01:00
|
|
|
-->
|
2023-04-30 14:45:40 +02:00
|
|
|
<figure {{ with .Get "id" }}id="{{.}}"{{ end -}} {{ with .Get "class" }}class="{{.}}"{{ end -}} >
|
2022-12-17 07:30:26 +01:00
|
|
|
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
|
|
|
|
<img src="{{ .Get "src" }}"
|
2023-04-13 18:38:41 +02:00
|
|
|
{{- with .Get "title" }} title="{{.}}"{{ end -}}
|
2022-12-17 07:30:26 +01:00
|
|
|
{{- with .Get "alt" }} alt="{{.}}"{{ end -}}
|
|
|
|
>
|
|
|
|
{{- if .Get "link"}}</a>{{ end -}}
|
|
|
|
{{- with .Get "caption" -}}
|
|
|
|
<figcaption>
|
|
|
|
{{- . -}}
|
|
|
|
</figcaption>
|
|
|
|
{{- end -}}
|
|
|
|
</figure>
|