Home: Fix non-existing links on card headings
All checks were successful
/ build (push) Successful in 13s
All checks were successful
/ build (push) Successful in 13s
This commit is contained in:
parent
68267a933f
commit
f303dee335
|
@ -39,7 +39,11 @@
|
||||||
{{- range $subsecs }}
|
{{- range $subsecs }}
|
||||||
{{- $link := .Params.link }}
|
{{- $link := .Params.link }}
|
||||||
<div class="wide">
|
<div class="wide">
|
||||||
|
{{- if eq $link nil }}
|
||||||
|
<h4>{{ .Title }}</h4>
|
||||||
|
{{- else }}
|
||||||
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
|
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
|
||||||
|
{{- end }}
|
||||||
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
|
{{- $img_path := printf "%s%s" $subsec_dir .Params.Image }}
|
||||||
{{- with $home.Resources.Get $img_path }}
|
{{- with $home.Resources.Get $img_path }}
|
||||||
<a href="{{ $link }}"><img class="groups-img" src="{{ .RelPermalink }}"></a>
|
<a href="{{ $link }}"><img class="groups-img" src="{{ .RelPermalink }}"></a>
|
||||||
|
|
Loading…
Reference in a new issue