From 601cc5c92e869de247cd371d8c627f38b8fb6f85 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 10 Jan 2022 01:22:45 +0100 Subject: [PATCH] resources layout 2 column and sort by date Signed-off-by: Toshaan Bharvani --- themes/openpowerfoundation/layouts/resources/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }}