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" }}

Next Article

- + + {{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext .Params.featuredimage) ".webp"))) -}} + + {{- end }} + + +
{{ end }}
diff --git a/layouts/_default/li.html b/layouts/_default/li.html index 7f1f563..067ed3f 100644 --- a/layouts/_default/li.html +++ b/layouts/_default/li.html @@ -2,7 +2,13 @@ href="{{ .Permalink }}" class="card blog-card" rel="bookmark" > {{ if isset .Params "featuredimage" }}
- + + {{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext .Params.featuredimage) ".webp"))) -}} + + {{- end }} + + +
{{ end }}