diff --git a/themes/openpowerfoundation/layouts/resources/list.html b/themes/openpowerfoundation/layouts/resources/list.html index e787190..0d154ac 100644 --- a/themes/openpowerfoundation/layouts/resources/list.html +++ b/themes/openpowerfoundation/layouts/resources/list.html @@ -49,11 +49,11 @@
- {{ range (.Paginate .Data.Pages.ByTitle 30).Pages }} + {{ range (.Paginate .Data.Pages.ByDate.Reverse 30).Pages }} {{ $imagename := .Param "image" }} {{ $imagelocation := (printf "%s/%s" "images/resources/" $imagename) }} {{ $imageresource := resources.Get $imagelocation }} -
+
{{ if $imageresource }}
{{ $image := $imageresource.Resize "50x50 webp" }}