Aggiunto banner di avviso importante #210
@ -10,10 +10,8 @@ copyright: 2024 © Bergamo Linux Users Group
|
||||
paginate: 20
|
||||
timeout: 1800s
|
||||
enableRobotsTXT: true
|
||||
|
||||
params:
|
||||
description: Bergamo Linux Users Group
|
||||
|
||||
social:
|
||||
- title: Mattermost
|
||||
icon: fa-comments
|
||||
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
importantWarning:
|
||||
enabled: false
|
||||
link: /en/where
|
||||
|
||||
message: "BGLUG is closed on 10 october"
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.jpg
|
||||
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
importantWarning:
|
||||
enabled: false
|
||||
link: /it/dove-siamo
|
||||
paspo
commented
come sopra come sopra
|
||||
message: "Il BGLUG è chiuso il 10 ottobre"
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.jpg
|
||||
|
9
layouts/partials/head/important-warning.html
Normal file
9
layouts/partials/head/important-warning.html
Normal 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>
|
@ -43,3 +43,5 @@
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{{- partial "head/important-warning.html" . }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user
era bello usare un tag tipo
relref
, ma non puoi dallo yaml...ci faremo andar bene il link tradizionale