Aggiunto banner di avviso importante #210
10
config.yml
10
config.yml
@ -10,10 +10,10 @@ copyright: 2024 © Bergamo Linux Users Group
|
|||||||
paginate: 20
|
paginate: 20
|
||||||
timeout: 1800s
|
timeout: 1800s
|
||||||
enableRobotsTXT: true
|
enableRobotsTXT: true
|
||||||
|
params:
|
||||||
params:
|
|
||||||
description: Bergamo Linux Users Group
|
description: Bergamo Linux Users Group
|
||||||
|
enableImportantWarning: false
|
||||||
|
importantWarningLink: dove-siamo
|
||||||
social:
|
social:
|
||||||
- title: Mattermost
|
- title: Mattermost
|
||||||
icon: fa-comments
|
icon: fa-comments
|
||||||
@ -62,6 +62,8 @@ languages:
|
|||||||
languageCode: it-IT
|
languageCode: it-IT
|
||||||
languageDirection: ltr
|
languageDirection: ltr
|
||||||
languageName: Italiano
|
languageName: Italiano
|
||||||
|
params:
|
||||||
|
importantWarningMessage: "Il BGLUG è chiuso il 10 ottobre"
|
||||||
permalinks:
|
permalinks:
|
||||||
page:
|
page:
|
||||||
posts: /posts/:year/:month/:slug/
|
posts: /posts/:year/:month/:slug/
|
||||||
@ -129,6 +131,8 @@ languages:
|
|||||||
languageCode: en-US
|
languageCode: en-US
|
||||||
languageDirection: ltr
|
languageDirection: ltr
|
||||||
languageName: English
|
languageName: English
|
||||||
|
params:
|
||||||
|
importantWarningMessage: "BGLUG is closed il 11 ottobre"
|
||||||
permalinks:
|
permalinks:
|
||||||
page:
|
page:
|
||||||
posts: /posts/:year/:month/:slug/
|
posts: /posts/:year/:month/:slug/
|
||||||
|
5
layouts/partials/head/important-warning.html
Normal file
5
layouts/partials/head/important-warning.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{ if .Site.Params.enableImportantWarning }}
|
||||||
|
<div style="text-align: center; background-color: yellow; font-weight: bold; font-size: xx-large; padding-top: 10px; padding-bottom: 10px;">
|
||||||
|
<a href="{{ .Site.Params.importantWarningLink }}" style="color: blue; text-decoration: underline;">⚠️⚠️⚠️ {{ .Site.Params.importantWarningMessage }} ⚠️⚠️⚠️</a>
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
@ -43,3 +43,5 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{- partial "head/important-warning.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user