1
0
forked from BgLUG/bglug.it

Compare commits

..

2 Commits

Author SHA1 Message Date
4ac390b86b Aggiunto shortcode img per didascalie fatte meglio (#365)
Fixes #356

Co-authored-by: amreo <amreo0x+github@protonmail.com>
Co-authored-by: paspo <paolo@asperti.com>
Reviewed-on: BgLUG/bglug.it#365
Reviewed-by: Paolo Asperti <paspo@noreply.libreschool.org>
2025-04-08 20:05:11 +00:00
4c91f331d6 Aggiunto evento fiera gonzaga (#375)
Live al più presto

Co-authored-by: amreo <amreo0x+github@protonmail.com>
Reviewed-on: BgLUG/bglug.it#375
Reviewed-by: omar <omarl@noreply.libreschool.org>
Co-authored-by: amreo <amreo@noreply.libreschool.org>
Co-committed-by: amreo <amreo@noreply.libreschool.org>
2025-03-28 20:28:05 +00:00
5 changed files with 32 additions and 2 deletions

View File

@ -54,7 +54,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**

View File

@ -52,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**

View File

@ -11,3 +11,5 @@ come_and_see_us: Come and see us
where: Where
more_tags: "...more"
editions: Editions
source: Source
author: Author

View File

@ -11,3 +11,5 @@ come_and_see_us: Vieni a trovarci
where: Dove siamo
more_tags: "...altro"
editions: Edizioni
source: Fonte
author: Autore

View File

@ -0,0 +1,26 @@
<div>
{{- $imgsrc := .Page.Resources.GetMatch (.Get "src") -}}
<img src="{{ $imgsrc.RelPermalink }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
<figcaption>
{{ if strings.HasPrefix (.Get "source") "http" }}
<small class="image-source">🛈 {{ T "source" }}: <a href="{{ .Get "source" }}" target="_blank">{{ .Get "source" }}</a></small>
{{ else if ne (.Get "source") "" }}
<small class="image-source">🛈 {{ T "source" }}: {{ .Get "source" }}</small>
{{ end }}
{{ if ne (.Get "author") "" }}
<small class="image-source">🧑‍🎨 {{ T "author" }}: {{ .Get "author" }}</small>
{{ end }}
{{ if ne (.Get "license-text") "" }}
{{ if strings.HasPrefix (.Get "license-url") "http" }}
<small class="image-source">📄 {{ T "license" }}: <a href="{{ .Get "license-url" }}" target="_blank">{{ .Get "license-text" }}</a></small>
{{ else }}
<small class="image-source">📄 {{ T "license" }}: {{ .Get "license-text" }}</small>
{{ end }}
{{ end }}
</figcaption>
</div>