change the location where group images come from

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent bbebf749b9
commit d4a7f56e56

@ -21,7 +21,7 @@
<div class="row"> <div class="row">
{{ range (.Data.Pages.ByParam "wgtype").Reverse }} {{ range (.Data.Pages.ByParam "wgtype").Reverse }}
{{ $imagename := .Param "image" }} {{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/" $imagename) }} {{ $imagelocation := (printf "%s/%s" "images/groups/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
<article class="post__article col-md-4"> <article class="post__article col-md-4">
{{ if $imageresource }} {{ if $imageresource }}

Loading…
Cancel
Save