Home: Add links to groups
This commit is contained in:
parent
e79866e9fe
commit
1bbd0e4edd
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue