mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
button: fix whitespace on minify #737
the resulting html must be on one line; otherwise the minifier runs havok
This commit is contained in:
parent
13822f44a2
commit
9ef0c1f8b1
1 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@
|
|||
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
|
||||
{{- end }}
|
||||
{{- $iconposition := .iconposition | default "left" }}
|
||||
{{- with $page }}
|
||||
{{- with $page -}}
|
||||
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
||||
{{- if $isButton }}
|
||||
{{- if $isButton -}}
|
||||
<button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}>
|
||||
{{- else -}}
|
||||
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
||||
|
@ -61,6 +61,6 @@
|
|||
</button>
|
||||
{{- else -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end }}
|
Loading…
Reference in a new issue