resources layout 2 column and sort by date

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1693381142243034077/jamesk-patch-1
Toshaan Bharvani 3 years ago
parent 9ca28ea667
commit 601cc5c92e

@ -49,11 +49,11 @@
</div>
</div>
<div class="row">
{{ 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 }}
<article class="post__article col-md-4">
<article class="post__article col-md-6">
{{ if $imageresource }}
<div class="post__thumb">
{{ $image := $imageresource.Resize "50x50 webp" }}

Loading…
Cancel
Save