From e163795ace1f0109bf7ee8525a235e2850094707 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 31 Jan 2022 23:33:38 +0000
Subject: [PATCH] add helper template #69
---
layouts/partials/functions/getIconPath.html | 6 ++++--
1 files 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
--
Gitblit v1.10.0