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

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <git@rootwork.org>2022-05-11 01:26:10 +0300
committerIvan Boothe <git@rootwork.org>2022-05-11 01:26:10 +0300
commit13afe0d11677b836816870dfc6e7481a21f79b07 (patch)
tree3cd6c8098637939ef31efcfffae4c60724e60d21
parentffc97eab065cab6d27d4a63f3c25bcbbdd9eed35 (diff)
add fallback for non-image types
Signed-off-by: Ivan Boothe <git@rootwork.org>
-rw-r--r--layouts/_default/_markup/render-image.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 8be264c..48acc6f 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -26,6 +26,8 @@
{{- $file = path.Join "images" $image -}}
{{- $image = $image.Content | resources.FromString $file -}}
{{- end -}}
+ {{- else -}}
+ {{- $image = "" -}}
{{- end -}}
{{- else -}}
{{- $scratch.Add "classes" " image_internal" -}}