Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2022-02-01 02:33:38 +0300
committerweru <fromweru@gmail.com>2022-02-01 02:33:38 +0300
commite163795ace1f0109bf7ee8525a235e2850094707 (patch)
tree034dcb45fe6969f7926add52c4ec7ddf45ce2cbc
parente51d42c92a92d850e52b42a1be682537c8400365 (diff)
add helper template #69
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r--layouts/partials/functions/getIconPath.html6
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