From 6ef52bcd53f6ab090add1d913644d97996efe459 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 25 Apr 2023 22:51:36 +0800 Subject: [PATCH] Update whitespace trimming for components --- layouts/partials/components.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/components.html b/layouts/partials/components.html index 98e5924..ebecc65 100644 --- a/layouts/partials/components.html +++ b/layouts/partials/components.html @@ -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)