-
+
+ {{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext .Params.featuredimage) ".webp"))) -}}
+
+ {{- end }}
+
+
+
{{ end }}
diff --git a/layouts/_default/li-next.html b/layouts/_default/li-next.html index 715e98f..eb8082d 100644 --- a/layouts/_default/li-next.html +++ b/layouts/_default/li-next.html @@ -3,7 +3,13 @@ {{ if isset .Params "featuredimage" }}