burning.moe/templates/links.tmpl
Lilian Jónsdóttir 5882b9d19a template tweaks
about template more resembles links now
2024-01-27 18:57:57 -08:00

29 lines
725 B
Cheetah

{{- template "base" . -}}
{{- define "content" }}
<span id="bigwords">
{{ index .StringMap "words" }}
</span>
<span id="words">
{{- range $key, $value := .LinkMap }}
<h4>{{ $key }}</h4>
{{- range $value }}
<a href="{{ .Href }}" class="links">
{{- if (ne .Icon "") }}
<span class="iconify" data-icon="{{ .Icon }}"></span>
{{ end }}
{{- .Text }}
</a><br />
{{- end }}
{{- end }}
<br />
<a href="/" id="back">
<span class="iconify" data-icon="material-symbols:keyboard-arrow-left"></span>
back
</a>
</span>
{{ end -}}
{{- define "js" }}
<script src="https://code.iconify.design/3/3.1.0/iconify.min.js"></script>
{{ end -}}