diff --git a/i18n/en.yaml b/i18n/en.yaml index 77de4f7..1b68c31 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -11,3 +11,5 @@ come_and_see_us: Come and see us where: Where more_tags: "...more" editions: Editions +source: Source +author: Author \ No newline at end of file diff --git a/i18n/it.yaml b/i18n/it.yaml index 46104af..e75651e 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -11,3 +11,5 @@ come_and_see_us: Vieni a trovarci where: Dove siamo more_tags: "...altro" editions: Edizioni +source: Fonte +author: Autore \ No newline at end of file diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 525457a..5a72726 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -2,22 +2,22 @@ {{ .Get {{ if strings.HasPrefix (.Get "source") "http" }} - 🛈 Fonte: {{ .Get "source" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} {{ else if ne (.Get "source") "" }} - 🛈 Fonte: {{ .Get "source" }} + 🛈 {{ T "source" }}: {{ .Get "source" }} {{ end }} {{ if ne (.Get "author") "" }} - 🧑‍🎨 Autore: {{ .Get "author" }} + 🧑‍🎨 {{ T "author" }}: {{ .Get "author" }} {{ end }} {{ if ne (.Get "license-text") "" }} {{ if strings.HasPrefix (.Get "license-url") "http" }} - 📄 Licenza: {{ .Get "license-text" }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} {{ else }} - 📄 Licenza: {{ .Get "license-text" }} + 📄 {{ T "license" }}: {{ .Get "license-text" }} {{ end }} {{ end }} \ No newline at end of file