Aggiunto banner di avviso importante #210
@ -12,8 +12,6 @@ timeout: 1800s
|
||||
enableRobotsTXT: true
|
||||
params:
|
||||
description: Bergamo Linux Users Group
|
||||
enableImportantWarning: false
|
||||
importantWarningLink: dove-siamo
|
||||
social:
|
||||
- title: Mattermost
|
||||
icon: fa-comments
|
||||
@ -62,8 +60,6 @@ languages:
|
||||
languageCode: it-IT
|
||||
languageDirection: ltr
|
||||
languageName: Italiano
|
||||
params:
|
||||
importantWarningMessage: "Il BGLUG è chiuso il 10 ottobre"
|
||||
permalinks:
|
||||
page:
|
||||
posts: /posts/:year/:month/:slug/
|
||||
@ -131,8 +127,6 @@ languages:
|
||||
languageCode: en-US
|
||||
languageDirection: ltr
|
||||
languageName: English
|
||||
params:
|
||||
importantWarningMessage: "BGLUG is closed il 11 ottobre"
|
||||
permalinks:
|
||||
page:
|
||||
posts: /posts/:year/:month/:slug/
|
||||
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
importantWarning:
|
||||
enabled: true
|
||||
link: /en/where
|
||||
|
||||
message: "BGLUG is closed on 10 october"
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.jpg
|
||||
|
@ -1,4 +1,8 @@
|
||||
---
|
||||
importantWarning:
|
||||
enabled: true
|
||||
link: /it/dove-siamo
|
||||
paspo
commented
come sopra come sopra
|
||||
message: "Il BGLUG è chiuso il 10 ottobre"
|
||||
banner:
|
||||
enable: true
|
||||
image: homepage_banner.jpg
|
||||
|
@ -1,5 +1,9 @@
|
||||
{{ 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 -}}
|
||||
<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>
|
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