2022-06-27 14:09:44 +00:00
|
|
|
{{- $links := .links }}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- $odd := .odd }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{- $defaultimage := .defaultimage}}
|
|
|
|
{{- $id := "links"}}
|
|
|
|
{{if $links.id}}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- $id = $links.id}}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{else if .id}}
|
2023-11-19 16:11:04 +00:00
|
|
|
{{- $id = .id }}
|
2022-06-27 14:09:44 +00:00
|
|
|
{{end}}
|
|
|
|
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
2022-07-08 15:01:05 +00:00
|
|
|
<div class="section-content">
|
2022-06-27 14:09:44 +00:00
|
|
|
{{ with $links.title }}
|
|
|
|
<div class="title">
|
|
|
|
<h1 class="content-title">{{ . }}</h1>
|
|
|
|
<div class="divider"></div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="cardList">
|
|
|
|
{{- range $links.links}}
|
2022-07-08 15:01:05 +00:00
|
|
|
<div class="mediumCard">
|
|
|
|
<a href="{{ .url }}">
|
|
|
|
<div class="cardContent">
|
|
|
|
{{ if .image }}
|
|
|
|
<img class="cardImage {{ if eq .image.cover false }} noCover {{ end }}" alt="{{ .image.alt }}" src="{{ .image.url }}" />
|
|
|
|
{{ else if .icon }}
|
|
|
|
<div class="cardImage">
|
2023-09-25 11:34:46 +00:00
|
|
|
<i class="icon-{{ .icon }} cardIcon"></i>
|
2022-07-08 15:01:05 +00:00
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<img class="cardImage" alt="default image" src="{{ $defaultimage }}" />
|
|
|
|
{{ end }}
|
|
|
|
<div class="cardTitle">{{ .title }}</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-06-27 14:09:44 +00:00
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|