implemented headline icons
This commit is contained in:
parent
7e15d46684
commit
00b10cde25
57 changed files with 131 additions and 76 deletions
|
@ -7,7 +7,7 @@
|
|||
{{- if gt (len $matches) 0 -}}
|
||||
{{- range $i, $match := $matches -}}
|
||||
{{- $iconName := replaceRE `^\[(\w+)\]$` `$1` $match -}}
|
||||
{{- $iconPath := printf "icons/%s.svg" $iconName -}}
|
||||
{{- $iconPath := printf "icons/heading-icons/%s.svg" $iconName -}}
|
||||
{{- $svg := resources.Get $iconPath -}}
|
||||
{{- if $svg -}}
|
||||
{{- $svgContent := $svg.Content | safeHTML -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue