mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
feat: replace info, tip and warn shortcodes by notice with params
This commit is contained in:
parent
c2d67b677c
commit
c203a7fac4
4 changed files with 1 additions and 3 deletions
|
@ -1 +0,0 @@
|
||||||
<div class="notices info">{{ .Inner }}</div>
|
|
1
layouts/shortcodes/notice.html
Normal file
1
layouts/shortcodes/notice.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>
|
|
@ -1 +0,0 @@
|
||||||
<div class="notices tip">{{ .Inner }}</div>
|
|
|
@ -1 +0,0 @@
|
||||||
<div class="notices warning">{{ .Inner }}</div>
|
|
Loading…
Reference in a new issue