mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode | default " en" }}">
|
|
|
|
<head>
|
|
{{ partial "head.html" . -}}
|
|
</head>
|
|
|
|
<body>
|
|
<div id="links">
|
|
{{ range $key, $value := sort (index $.Site.Data (slice "foodogsquared-homepage" "links")) "weight" }}
|
|
{{- $name := default $key $value.name -}}
|
|
<section
|
|
id="section-{{ $name }}"
|
|
tabindex="1"
|
|
{{ with $value.grid }}
|
|
style="{{ with .column }}grid-column: span {{ . }};{{ end }}{{ with .row }}grid-row: span {{ . }};{{ end }}"
|
|
{{ end }}
|
|
>
|
|
<span class="nav-header">{{ $name }}</span>
|
|
{{ with $value.flavorText }}
|
|
<span class="flavor-text">{{ . }}</span>
|
|
{{ end }}
|
|
<hr />
|
|
|
|
<nav>
|
|
{{ range $link := $value.links }}
|
|
<a href="{{ safeURL $link.url }}">{{ $link.text }}</a>
|
|
{{ end }}
|
|
</nav>
|
|
</section>
|
|
{{ end }}
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|