Compare commits

...

3 Commits

Author SHA1 Message Date
amreo
86af988a2e Disabilitato i due warning (al momento non servono) 2024-09-09 00:57:54 +02:00
amreo
b290578291 Spostato la configurazione dell'avviso da config in data 2024-09-09 00:55:30 +02:00
amreo
ca6242a573 Aggiunto banner di avviso importante 2024-09-09 00:21:50 +02:00
5 changed files with 20 additions and 3 deletions

View File

@ -10,10 +10,8 @@ copyright: 2024 © Bergamo Linux Users Group
paginate: 20
timeout: 1800s
enableRobotsTXT: true
params:
params:
description: Bergamo Linux Users Group
social:
- title: Mattermost
icon: fa-comments

View File

@ -1,4 +1,8 @@
---
importantWarning:
enabled: false
link: /en/where
message: "BGLUG is closed on 10 october"
banner:
enable: true
image: homepage_banner.jpg

View File

@ -1,4 +1,8 @@
---
importantWarning:
enabled: false
link: /it/dove-siamo
message: "Il BGLUG è chiuso il 10 ottobre"
banner:
enable: true
image: homepage_banner.jpg

View File

@ -0,0 +1,9 @@
<div>
{{ with index ( index .Site.Data .Site.Language.Lang | default .Site.Data ) (.Param "homepage_data" | default "homepage") }}
{{ if .importantWarning.enabled}}
<div style="text-align: center; background-color: yellow; font-weight: bold; font-size: xx-large; padding-top: 10px; padding-bottom: 10px;">
<a href="{{ urls.AbsURL .importantWarning.link }}" style="color: blue; text-decoration: underline;">⚠️⚠️⚠️ {{ .importantWarning.message }} ⚠️⚠️⚠️</a>
</div>
{{- end -}}
{{ end }}
</div>

View File

@ -43,3 +43,5 @@
</ul>
</nav>
</div>
{{- partial "head/important-warning.html" . }}