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..a13ddc1 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 @@ -9,6 +9,10 @@ image_alt: "Image of the event with, in the background, an open book on the side summary: On Saturday 15 February at 16:00, the Tiraboschi Library in Bergamo will host a reading of the book Ada and Zangemann, followed by the construction of a paper circuit. grouping: - homepage +location_link: "[Biblioteca Tiraboschi](https://biblioteche.comune.bergamo.it/library/Biblioteca-civica-Antonio-Tiraboschi/)" +locations: "biblioteca-tiraboschi" +location_ics: Biblioteca Tiraboschi di Via San Bernardino, 74, Bergamo + --- πŸ“– **Educational-training activity "They are young + they need code" at the Tiraboschi library (BG) - second edition** @@ -48,7 +52,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..86839e4 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 @@ -9,6 +9,11 @@ image_alt: "Immagine dell'evento con, sullo sfondo, un libro aperto lateralmente summary: Sabato 15 febbraio alle ore 16:00, presso la Biblioteca Tiraboschi di Bergamo, si terrΓ  la lettura del libro Ada e Zangemann, seguita dalla costruzione di un paper circuit. grouping: - homepage +add_to_ics: true +duration: 1h30m +location_link: "[Biblioteca Tiraboschi](https://biblioteche.comune.bergamo.it/library/Biblioteca-civica-Antonio-Tiraboschi/)" +locations: "biblioteca-tiraboschi" +location_ics: Biblioteca Tiraboschi di Via San Bernardino, 74, Bergamo --- πŸ“– **AttivitΓ  didattica-formativa "Sono giovani + hanno bisogno di codice" alla biblioteca Tiraboschi (BG) - seconda edizione** @@ -47,7 +52,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/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 new file mode 100644 index 0000000..2316130 --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +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" }} + {{ end }} + {{ end }} +
+
\ No newline at end of file