bglug.it/layouts/partials/head/important-warning.html
amreo b290578291
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m1s
Spostato la configurazione dell'avviso da config in data
2024-09-09 00:55:30 +02: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>