Files
hammerfest/layouts/partials/sections/layers.html
T
2026-09-30 16:19:00 -06:00

19 lines
878 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">{{ with $item.linktext }}{{ replaceRE `\s*[→↗]\s*$` "" . }}{{ end }}<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 }}