diff --git a/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.en.md b/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.en.md index ff880b1..3b0fa0a 100644 --- a/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.en.md +++ b/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.en.md @@ -48,7 +48,7 @@ The library does not have an internal car park. Click below on the openstreetmap 🪧 **Official poster** -![Official event poster](locandina-evento-2025-02-15.png) +{{< img src="locandina-evento-2025-02-15.png" alt="Official event poster" author="Tiraboschi Library" license-text="CC0" license-url="creativecommons.org/publicdomain/zero/1.0/deed.en" >}} [Also in PDF format](locandina-evento-2025-02-15.pdf) 📒 **Contacts** diff --git a/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.it.md b/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.it.md index 8301da8..aa0ebee 100644 --- a/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.it.md +++ b/content/events/2025/lettura-ada-zangemann-bergamo-tiraboschi/index.it.md @@ -47,7 +47,7 @@ La biblioteca non dispone di un parcheggio interno. Clicca qui sotto la mappa di 🪧 **Locandina ufficiale** -![Locandina ufficiale dell'evento](locandina-evento-2025-02-15.png) +{{< img src="locandina-evento-2025-02-15.png" alt="Locandina ufficiale dell'evento" author="Biblioteca Tiraboschi" license-text="CC0" license-url="creativecommons.org/publicdomain/zero/1.0/deed.it" >}} [Anche in formato PDF](locandina-evento-2025-02-15.pdf) 📒 **Contatti** diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..525457a --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,23 @@ +
+ {{ .Get + + {{ if strings.HasPrefix (.Get "source") "http" }} + 🛈 Fonte: {{ .Get "source" }} + {{ else if ne (.Get "source") "" }} + 🛈 Fonte: {{ .Get "source" }} + {{ end }} + + + {{ if ne (.Get "author") "" }} + 🧑‍🎨 Autore: {{ .Get "author" }} + {{ end }} + + + {{ if ne (.Get "license-text") "" }} + {{ if strings.HasPrefix (.Get "license-url") "http" }} + 📄 Licenza: {{ .Get "license-text" }} + {{ else }} + 📄 Licenza: {{ .Get "license-text" }} + {{ end }} + {{ end }} +
\ No newline at end of file