From e163795ace1f0109bf7ee8525a235e2850094707 Mon Sep 17 00:00:00 2001 From: weru Date: Tue, 1 Feb 2022 02:33:38 +0300 Subject: add helper template #69 Signed-off-by: weru --- layouts/partials/functions/getIconPath.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/functions/getIconPath.html b/layouts/partials/functions/getIconPath.html index fab0bc4..e0be3e7 100644 --- a/layouts/partials/functions/getIconPath.html +++ b/layouts/partials/functions/getIconPath.html @@ -1,4 +1,6 @@ -{{ $s := .Site }} -{{ $sp := $s.Params }} +{{ $sp := site.Params }} {{ $iconsPath := "icons/" }} +{{ with $sp.iconsPath }} + {{ $iconsPath = . }} +{{ end }} {{ return $iconsPath }} \ No newline at end of file -- cgit v1.2.3