mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 01:21:04 +01:00
11 lines
510 B
HTML
11 lines
510 B
HTML
<figure{{ if or (.Get "class") (eq (.Get "align") "center") }} class="
|
|
{{- if eq (.Get "align") "center" }}align-center {{ end }}
|
|
{{- with .Get "class" }}{{ . }}{{- end }}"
|
|
{{- end -}}>
|
|
{{- if .Get "link" -}}
|
|
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
|
{{- end }}
|
|
{{ partial "image.html" (merge .Params (dict "page" .Page "lazy" true)) }}
|
|
{{- if .Get "link" }}</a>{{ end -}}
|
|
</figure>
|