adds some handy shortcodes
This commit is contained in:
parent
5cb7c1f45f
commit
f1605d3802
3 changed files with 8 additions and 0 deletions
1
layouts/shortcodes/kbd.html
Normal file
1
layouts/shortcodes/kbd.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<kbd>{{- .Get 0 -}}</kbd>
|
4
layouts/shortcodes/note.html
Normal file
4
layouts/shortcodes/note.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<blockquote {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
||||||
|
<strong>{{ .Get 0 | default "Note" }}</strong><br>
|
||||||
|
{{- .Inner -}}
|
||||||
|
</blockquote>
|
3
layouts/shortcodes/warning.html
Normal file
3
layouts/shortcodes/warning.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<blockquote class="warning">
|
||||||
|
{{- .Inner -}}
|
||||||
|
</blockquote>
|
Loading…
Reference in a new issue