1
0
forked from BgLUG/bglug.it

Aggiunto shortcode img e sistemato un articolo per immagine

This commit is contained in:
amreo 2025-02-04 22:27:30 +01:00
parent 26b86e0d6e
commit 43b181fd91
3 changed files with 25 additions and 2 deletions

View File

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

View File

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

View File

@ -0,0 +1,23 @@
<figcaption>
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
{{ if strings.HasPrefix (.Get "source") "http" }}
<small class="image-source">🛈 Fonte: <a href="{{ .Get "source" }}" target="_blank">{{ .Get "source" }}</a></small>
{{ else if ne (.Get "source") "" }}
<small class="image-source">🛈 Fonte: {{ .Get "source" }}</small>
{{ end }}
{{ if ne (.Get "author") "" }}
<small class="image-source">🧑‍🎨 Autore: {{ .Get "author" }}</small>
{{ end }}
{{ if ne (.Get "license-text") "" }}
{{ if strings.HasPrefix (.Get "license-url") "http" }}
<small class="image-source">📄 Licenza: <a href="{{ .Get "license-url" }}" target="_blank">{{ .Get "license-text" }}</a></small>
{{ else }}
<small class="image-source">📄 Licenza: {{ .Get "license-text" }}</small>
{{ end }}
{{ end }}
</figcaption>