mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
button: allow for empty href #288
This commit is contained in:
parent
b1547e945f
commit
5e0771f2c4
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
{{- $iconposition := .iconposition | default "left" }}
|
||||
{{- with $context }}
|
||||
<span class="btn cstyle {{ $style }}">
|
||||
<a href="{{ $href }}" target="_blank">
|
||||
<a{{ if $href }} href="{{ $href }}" target="_blank"{{ end }}>
|
||||
{{- if and $icon (eq $iconposition "left") }}
|
||||
<i class="{{ $icon }}"></i>
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue