mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-11 13:22:44 +02:00
remove brand on single pages; remove fa; others
This commit is contained in:
parent
6760f0cb6b
commit
cc8175f38b
9 changed files with 34 additions and 74 deletions
layouts/partials/shortcodes
|
@ -31,9 +31,6 @@
|
|||
{{- if eq $style "tip" }}{{ $icon = default "lightbulb" }}{{ end }}
|
||||
{{- end }}
|
||||
{{- $icon = trim $icon " " }}
|
||||
{{- if and $icon (not (findRE ".*?\\bfa-\\w.*?" $icon)) }}
|
||||
{{- $icon = printf "fa-fw fas fa-%s" $icon }}
|
||||
{{- end }}
|
||||
{{- $iconposition := .iconposition | default "left" }}
|
||||
{{- with $context }}
|
||||
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
||||
|
@ -43,11 +40,11 @@
|
|||
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
||||
{{- end }}
|
||||
{{- if and $icon (eq $iconposition "left") }}
|
||||
<i class="{{ $icon }}"></i>
|
||||
{{ $icon }}
|
||||
{{- end }}
|
||||
{{ $title | safeHTML }}
|
||||
{{- if and $icon (eq $iconposition "right") }}
|
||||
<i class="{{ $icon }}"></i>
|
||||
{{ $icon }}
|
||||
{{- end }}
|
||||
{{- if $isButton }}
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue