Require alert config object
parent
46afb013bc
commit
c495b5aab8
@ -1,18 +0,0 @@
|
||||
---
|
||||
authors: ["will-faught"]
|
||||
categories: ["content", "paige"]
|
||||
date: "2023-09-18T21:33:35-07:00"
|
||||
description: "A simple alert."
|
||||
paige:
|
||||
alert: "Get more information <a href=\"#\" class=\"alert-link\">here</a>."
|
||||
tags: ["alerts"]
|
||||
title: "Simple Alert"
|
||||
weight: 60
|
||||
---
|
||||
|
||||
This page has the following parameters:
|
||||
|
||||
```yaml
|
||||
paige:
|
||||
alert: "Get more information <a href=\"#\" class=\"alert-link\">here</a>."
|
||||
```
|
@ -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 }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue