Home: Fix non-existing links on card headings
All checks were successful
/ build (push) Successful in 13s

This commit is contained in:
jtbx 2024-01-23 18:57:40 +01:00
parent 68267a933f
commit f303dee335

View file

@ -39,7 +39,11 @@
{{- range $subsecs }}
{{- $link := .Params.link }}
<div class="wide">
{{- if eq $link nil }}
<h4>{{ .Title }}</h4>
{{- else }}
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
{{- end }}
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
{{- with $home.Resources.Get $img_path }}
<a href="{{ $link }}"><img class="groups-img" src="{{ .RelPermalink }}"></a>