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 }}
|
@@ -55,6 +55,7 @@
|
||||
<article class="{{ $class }}">
|
||||
<div class="align-items-center d-flex flex-column mb-0">
|
||||
{{ partial "paige/metadata.html" $params }}
|
||||
{{ partial "paige/alert.html" $page }}
|
||||
{{ partial "paige/toc.html" $params }}
|
||||
{{ partial "paige/content.html" $params }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user