Lilian Jónsdóttir
3dbd5a86e2
- split many parts of RenderTemplate into their own functions so they can be used individually - move web apps into their own page, add projects page, both generated by executing links.tmpl with their own yaml data - handle / specially, generating LinkMap from Handlers
26 lines
633 B
Cheetah
26 lines
633 B
Cheetah
{{- template "base" . -}}
|
|
{{- define "content" }}
|
|
<span id="words">
|
|
{{- range $key, $value := .LinkMap }}
|
|
<h4>{{ $key }}</h4>
|
|
{{- range $value }}
|
|
<a href="{{ .Href }}">
|
|
{{- if (ne .Icon "") }}
|
|
<span class="iconify" data-icon="{{ .Icon }}"></span>
|
|
{{ end }}
|
|
{{- .Text }}
|
|
</a><br />
|
|
{{- end }}
|
|
{{ end -}}
|
|
<br />
|
|
<a href="/">
|
|
<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 -}}
|