2025-02-04 22:27:30 +01:00
|
|
|
<figcaption>
|
|
|
|
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
|
|
|
|
|
|
|
|
{{ if strings.HasPrefix (.Get "source") "http" }}
|
2025-02-04 22:34:34 +01:00
|
|
|
<small class="image-source">🛈 {{ T "source" }}: <a href="{{ .Get "source" }}" target="_blank">{{ .Get "source" }}</a></small>
|
2025-02-04 22:27:30 +01:00
|
|
|
{{ else if ne (.Get "source") "" }}
|
2025-02-04 22:34:34 +01:00
|
|
|
<small class="image-source">🛈 {{ T "source" }}: {{ .Get "source" }}</small>
|
2025-02-04 22:27:30 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if ne (.Get "author") "" }}
|
2025-02-04 22:34:34 +01:00
|
|
|
<small class="image-source">🧑🎨 {{ T "author" }}: {{ .Get "author" }}</small>
|
2025-02-04 22:27:30 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if ne (.Get "license-text") "" }}
|
|
|
|
{{ if strings.HasPrefix (.Get "license-url") "http" }}
|
2025-02-04 22:34:34 +01:00
|
|
|
<small class="image-source">📄 {{ T "license" }}: <a href="{{ .Get "license-url" }}" target="_blank">{{ .Get "license-text" }}</a></small>
|
2025-02-04 22:27:30 +01:00
|
|
|
{{ else }}
|
2025-02-04 22:34:34 +01:00
|
|
|
<small class="image-source">📄 {{ T "license" }}: {{ .Get "license-text" }}</small>
|
2025-02-04 22:27:30 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</figcaption>
|