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.
|
A partial that aliases the Heroicon template from the icon partial.
|
||||||
*/ -}}
|
*/ -}}
|
||||||
{{- define "partials/components/heroicon.html" }}
|
{{- define "partials/components/heroicon.html" }}
|
||||||
{{ $name := default .id .name }}
|
{{- $name := default .id .name }}
|
||||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/generic/%s.svg" .id)
|
{{- $res := resources.ExecuteAsTemplate (printf "icons/generic/%s.svg" .id)
|
||||||
(dict "id" .id
|
(dict "id" .id
|
||||||
"name" $name)
|
"name" $name)
|
||||||
@ -21,7 +21,7 @@
|
|||||||
A partial for easily using icons from Simple Icons set.
|
A partial for easily using icons from Simple Icons set.
|
||||||
*/ -}}
|
*/ -}}
|
||||||
{{- define "partials/components/simple-icon.html" }}
|
{{- define "partials/components/simple-icon.html" }}
|
||||||
{{ $name := default .id .name }}
|
{{- $name := default .id .name }}
|
||||||
{{- $res := resources.ExecuteAsTemplate (printf "icons/brand/%s.svg" .id)
|
{{- $res := resources.ExecuteAsTemplate (printf "icons/brand/%s.svg" .id)
|
||||||
(dict "id" .id
|
(dict "id" .id
|
||||||
"name" $name)
|
"name" $name)
|
||||||
|
Loading…
Reference in New Issue
Block a user