diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 5a72726..2316130 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,23 +1,24 @@ -
+
{{ .Get - {{ if strings.HasPrefix (.Get "source") "http" }} - 🛈 {{ T "source" }}: {{ .Get "source" }} - {{ else if ne (.Get "source") "" }} - 🛈 {{ T "source" }}: {{ .Get "source" }} - {{ end }} - - - {{ if ne (.Get "author") "" }} - 🧑‍🎨 {{ T "author" }}: {{ .Get "author" }} - {{ end }} - - - {{ if ne (.Get "license-text") "" }} - {{ if strings.HasPrefix (.Get "license-url") "http" }} - 📄 {{ T "license" }}: {{ .Get "license-text" }} - {{ else }} - 📄 {{ T "license" }}: {{ .Get "license-text" }} +
+ {{ if strings.HasPrefix (.Get "source") "http" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} + {{ else if ne (.Get "source") "" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} {{ end }} - {{ end }} -
\ No newline at end of file + + {{ if ne (.Get "author") "" }} + 🧑‍🎨 {{ T "author" }}: {{ .Get "author" }} + {{ end }} + + + {{ if ne (.Get "license-text") "" }} + {{ if strings.HasPrefix (.Get "license-url") "http" }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} + {{ else }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} + {{ end }} + {{ end }} +
+ \ No newline at end of file