aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-fetch-favicons.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-fetch-favicons.html')
-rw-r--r--themes/default/layouts/partials/function-fetch-favicons.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-fetch-favicons.html b/themes/default/layouts/partials/function-fetch-favicons.html
new file mode 100644
index 0000000..facde2f
--- /dev/null
+++ b/themes/default/layouts/partials/function-fetch-favicons.html
@@ -0,0 +1,15 @@
+{{- $source := .Source -}}
+{{- $infix := .Infix -}}
+{{- $pageContext := .Context -}}
+
+{{- $output := partial "function-caches-images.html"
+ (dict
+ "Context" $pageContext
+ "Source" $source
+ "Fit" "160x160"
+ "Target" (print (partial "function-paths.html").media "/")
+ "Copy" (print (partial "function-paths.html").media "/favicon." $infix ".png")
+ )
+-}}
+
+{{- return $output -}}