Add alerts
This commit is contained in:
9
layouts/partials/paige/alert.html
Normal file
9
layouts/partials/paige/alert.html
Normal 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 }}
|
Reference in New Issue
Block a user