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
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue