mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-01-30 22:57:57 +00:00
Update whitespace trimming for components
This commit is contained in:
parent
c27aab3766
commit
6ef52bcd53
@ -7,7 +7,7 @@
|
||||
A partial that aliases the Heroicon template from the icon partial.
|
||||
*/ -}}
|
||||
{{- define "partials/components/heroicon.html" }}
|
||||
{{ $name := default .id .name }}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/generic/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
@ -21,7 +21,7 @@
|
||||
A partial for easily using icons from Simple Icons set.
|
||||
*/ -}}
|
||||
{{- define "partials/components/simple-icon.html" }}
|
||||
{{ $name := default .id .name }}
|
||||
{{- $name := default .id .name }}
|
||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/brand/%s.svg" .id)
|
||||
(dict "id" .id
|
||||
"name" $name)
|
||||
|
Loading…
Reference in New Issue
Block a user