Home: Add links to groups

This commit is contained in:
jtbx 2023-11-03 19:40:42 +01:00
parent e79866e9fe
commit 1bbd0e4edd

View file

@ -37,11 +37,12 @@
{{- if $subsecs }}
<div class="flex-grid">
{{- range $subsecs }}
{{- $link := .Params.link }}
<div class="wide">
<h4>{{ .Title }}</h4>
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
{{- with $home.Resources.Get $img_path }}
<img class="groups-img" src="{{ .Permalink }}">
<a href="{{ $link }}"><img class="groups-img" src="{{ .Permalink }}"></a>
{{- end }}
{{ .Content }}
</div>