Add generic button shortcode
This commit is contained in:
parent
5c6faad7ee
commit
dad0cf720e
1 changed files with 5 additions and 0 deletions
5
layouts/shortcodes/button.html
Normal file
5
layouts/shortcodes/button.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ $style := default "btn-outline-dark" (.Get "style" )}}
|
||||
|
||||
<a class="btn {{ $style }} my-2" href='{{ .Get "src" }}'>
|
||||
{{ .Inner }}
|
||||
</a>
|
Loading…
Reference in a new issue