aboutsummaryrefslogtreecommitdiffstats
path: root/code/frontpage/layouts/partials/header/alert.html
diff options
context:
space:
mode:
Diffstat (limited to 'code/frontpage/layouts/partials/header/alert.html')
-rw-r--r--code/frontpage/layouts/partials/header/alert.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/code/frontpage/layouts/partials/header/alert.html b/code/frontpage/layouts/partials/header/alert.html
new file mode 100644
index 0000000..7944ae9
--- /dev/null
+++ b/code/frontpage/layouts/partials/header/alert.html
@@ -0,0 +1,10 @@
+{{ if .Site.Params.alertDismissable -}}
+ <div id="announcement" data-id="global-alert-{{ md5 .Site.Params.alertText }}" class="alert alert-primary alert-dismissible fade show text-lg-center" role="alert">
+ {{ .Site.Params.alertText | safeHTML }}
+ <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
+ </div>
+{{ else -}}
+ <div class="alert alert-primary text-lg-center" role="alert">
+ {{ .Site.Params.alertText | safeHTML }}
+ </div>
+{{ end -}} \ No newline at end of file