Require alert config object

This commit is contained in:
Will Faught
2024-06-03 23:27:27 -07:00
parent 46afb013bc
commit c495b5aab8
6 changed files with 8 additions and 31 deletions

View File

@@ -1,9 +1,5 @@
{{ $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 }}
<div class="alert alert-{{ .type }}" role="alert">{{ .message | markdownify }}</div>
{{ end }}