mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
feat: icon for button is positionable to the left or to the rightof the button + delete old note shortcode
This commit is contained in:
parent
6bbcccac88
commit
64f732ec17
2 changed files with 13 additions and 2 deletions
|
@ -1 +1,13 @@
|
|||
<a {{ with .Get "href"}} href="{{.}}" {{ end }} class="btn btn-default">{{ .Inner }} {{ with .Get "icon"}} <i class="{{.}}"></i> {{ end }}</a>
|
||||
<a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
|
||||
{{ $icon := .Get "icon" }}
|
||||
{{ $iconposition := .Get "icon-position" }}
|
||||
{{ if ($icon) }}
|
||||
{{ if or (not ($iconposition)) (eq $iconposition "left") }}
|
||||
<i class="{{$icon}}"></i>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ .Inner }}
|
||||
{{ if and ($icon) (eq $iconposition "right")}}
|
||||
<i class="{{$icon}}"></i>
|
||||
{{ end }}
|
||||
</a>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<div class="notices note">{{ .Inner }}</div>
|
Loading…
Reference in a new issue