Files
2026-10-05 06:13:52 -06:00

19 lines
882 B
HTML

{{ $s := . }}
{{ partial "sections/head.html" $s }}
<ol class="entries layer-list">
{{ range $i, $item := $s.items }}
<li>
{{ $key := "" }}{{ range hugo.Data.layers }}{{ if eq .url $item.link }}{{ $key = .key }}{{ end }}{{ end }}
<a href="{{ $item.link | relURL }}" class="entry layer-row"{{ with $key }} data-layer="{{ . }}"{{ end }}>
<span class="entry-n">{{ printf "%03d" (add $i 1) }}</span>
<span class="layer-body">
<span class="entry-title">{{ $item.title }}</span>
<span class="entry-text">{{ $item.body | markdownify }}</span>
</span>
<span class="entry-go">{{ replaceRE `\s*[→↗]\s*$` "" ($item.linktext | default "Learn more") }}<span class="arrow" aria-hidden="true">→</span></span>
</a>
</li>
{{ end }}
</ol>
{{ if $s.ctas }}<div class="cta-row">{{ partial "sections/ctas.html" $s.ctas }}</div>{{ end }}