diff options
author | weru <fromweru@gmail.com> | 2022-02-01 02:33:38 +0300 |
---|---|---|
committer | weru <fromweru@gmail.com> | 2022-02-01 02:33:38 +0300 |
commit | e163795ace1f0109bf7ee8525a235e2850094707 (patch) | |
tree | 034dcb45fe6969f7926add52c4ec7ddf45ce2cbc | |
parent | e51d42c92a92d850e52b42a1be682537c8400365 (diff) |
add helper template #69
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r-- | 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 |