forked from BgLUG/bglug.it
23 lines
995 B
HTML
23 lines
995 B
HTML
<figcaption>
|
|
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
|
|
|
|
{{ if strings.HasPrefix (.Get "source") "http" }}
|
|
<small class="image-source">🛈 {{ T "source" }}: <a href="{{ .Get "source" }}" target="_blank">{{ .Get "source" }}</a></small>
|
|
{{ else if ne (.Get "source") "" }}
|
|
<small class="image-source">🛈 {{ T "source" }}: {{ .Get "source" }}</small>
|
|
{{ end }}
|
|
|
|
|
|
{{ if ne (.Get "author") "" }}
|
|
<small class="image-source">🧑🎨 {{ T "author" }}: {{ .Get "author" }}</small>
|
|
{{ end }}
|
|
|
|
|
|
{{ if ne (.Get "license-text") "" }}
|
|
{{ if strings.HasPrefix (.Get "license-url") "http" }}
|
|
<small class="image-source">📄 {{ T "license" }}: <a href="{{ .Get "license-url" }}" target="_blank">{{ .Get "license-text" }}</a></small>
|
|
{{ else }}
|
|
<small class="image-source">📄 {{ T "license" }}: {{ .Get "license-text" }}</small>
|
|
{{ end }}
|
|
{{ end }}
|
|
</figcaption> |