Add alerts

This commit is contained in:
Will Faught
2023-03-07 21:21:26 -08:00
parent 668ea2602e
commit bbdea7c507
6 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{{ $page := . }}
{{ with $page.Param "paige.alert" }}
{{ if reflect.IsMap . }}
<div class="alert alert-{{ .type }}" role="alert">{{ .message | markdownify }}</div>
{{ else }}
<div class="alert alert-primary" role="alert">{{ . | markdownify }}</div>
{{ end }}
{{ end }}