Home: Add links to groups
This commit is contained in:
parent
e79866e9fe
commit
1bbd0e4edd
|
@ -37,11 +37,12 @@
|
||||||
{{- if $subsecs }}
|
{{- if $subsecs }}
|
||||||
<div class="flex-grid">
|
<div class="flex-grid">
|
||||||
{{- range $subsecs }}
|
{{- range $subsecs }}
|
||||||
|
{{- $link := .Params.link }}
|
||||||
<div class="wide">
|
<div class="wide">
|
||||||
<h4>{{ .Title }}</h4>
|
<h4><a href="{{ $link }}">{{ .Title }}</a></h4>
|
||||||
{{- $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 }}
|
||||||
<img class="groups-img" src="{{ .Permalink }}">
|
<a href="{{ $link }}"><img class="groups-img" src="{{ .Permalink }}"></a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue