1
0
forked from BgLUG/bglug.it
bglug.it/layouts/partials/head/important-warning.html
amreo 151cb19b28 Aggiunto banner di avviso importante (#210)
Risolve BgLUG/bglug.it#208

Co-authored-by: amreo <amreo0x+github@protonmail.com>
Reviewed-on: BgLUG/bglug.it#210
Reviewed-by: Paolo Asperti <paspo@noreply.libreschool.org>
Co-authored-by: amreo <amreo@noreply.libreschool.org>
Co-committed-by: amreo <amreo@noreply.libreschool.org>
2024-09-09 07:22:09 +00:00

9 lines
579 B
HTML

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