From 0d4e85158cb8df09c5663aa9801d7a5ad9c04dce Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Wed, 17 Jul 2019 15:46:57 -0400 Subject: [PATCH] Update image shortcodes to look in content folder instead of static folder --- layouts/shortcodes/image.html | 2 +- layouts/shortcodes/smallimg.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index acb26e8..9c53c9f 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -1,5 +1,5 @@ - {{ if (fileExists (printf "%s/%s" "static" (replace (index .Params "src") (path.Ext (index .Params "src")) ".webp"))) -}} + {{ if (fileExists (printf "%s/%s" "content" (replace (index .Params "src") (path.Ext (index .Params "src")) ".webp"))) -}} {{- end }} diff --git a/layouts/shortcodes/smallimg.html b/layouts/shortcodes/smallimg.html index 3610345..209c56f 100644 --- a/layouts/shortcodes/smallimg.html +++ b/layouts/shortcodes/smallimg.html @@ -1,5 +1,5 @@ - {{ if (fileExists (printf "%s/%s" "static" (replace (index .Params "src") (path.Ext (index .Params "src")) ".webp"))) -}} + {{ if (fileExists (printf "%s/%s" "content" (replace (index .Params "src") (path.Ext (index .Params "src")) ".webp"))) -}} {{- end }}