resources layout 2 column and sort by date

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 9ca28ea667
commit 601cc5c92e

@ -49,11 +49,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }} {{ range (.Paginate .Data.Pages.ByDate.Reverse 30).Pages }}
{{ $imagename := .Param "image" }} {{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/resources/" $imagename) }} {{ $imagelocation := (printf "%s/%s" "images/resources/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
<article class="post__article col-md-4"> <article class="post__article col-md-6">
{{ if $imageresource }} {{ if $imageresource }}
<div class="post__thumb"> <div class="post__thumb">
{{ $image := $imageresource.Resize "50x50 webp" }} {{ $image := $imageresource.Resize "50x50 webp" }}

Loading…
Cancel
Save