diff options
author | tdro <tdro@noreply.example.com> | 2023-03-03 17:34:06 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-03-03 18:48:17 -0500 |
commit | b0856bf1548a26c1c2924cc011f4a1ddc2707b5f (patch) | |
tree | 6449acc1cde1b7b2dbf463468e4e18e87fd1e83c /themes/default/layouts/partials/function-fetch-favicons.html | |
parent | 20355368f64f8d2889832db28e352f80bce18783 (diff) | |
download | canory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.tar.gz canory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.tar.bz2 canory-b0856bf1548a26c1c2924cc011f4a1ddc2707b5f.zip |
config: Support offline mode0.11.11
Default to offline. The configuration has to set the site's offline
configuration to false for remote fetches to be allowed
Diffstat (limited to 'themes/default/layouts/partials/function-fetch-favicons.html')
-rw-r--r-- | themes/default/layouts/partials/function-fetch-favicons.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/function-fetch-favicons.html b/themes/default/layouts/partials/function-fetch-favicons.html index 1d52c7e..7f92a94 100644 --- a/themes/default/layouts/partials/function-fetch-favicons.html +++ b/themes/default/layouts/partials/function-fetch-favicons.html @@ -1,12 +1,14 @@ -{{- $source := .Source -}} -{{- $infix := .Infix -}} +{{- $source := .Source -}} +{{- $infix := .Infix -}} +{{- $pageContext := .Context -}} {{- $output := partial "function-caches-images.html" (dict - "Source" $source - "Fit" "160x160" - "Target" (print (partial "function-paths.html" "media") "/") - "Copy" (print (partial "function-paths.html" "media") "/favicon." $infix ".png") + "Context" $pageContext + "Source" $source + "Fit" "160x160" + "Target" (print (partial "function-paths.html" "media") "/") + "Copy" (print (partial "function-paths.html" "media") "/favicon." $infix ".png") ) -}} |