2024-11-23 02:37:42 +00:00
|
|
|
{{ with .Param "categories" }}
|
|
|
|
{{ range $i, $category := . }}
|
|
|
|
{{ if eq $i 0 }}
|
|
|
|
{{ with $.Site.GetPage (printf "/%s/%s" "categories" $category) }}
|
|
|
|
{{ $iconDictionary := dict
|
2024-12-02 01:33:39 +00:00
|
|
|
"video" "video"
|
|
|
|
"paper" "book"
|
|
|
|
"poster" "presentation"
|
|
|
|
"thesis" "graduation-cap"
|
|
|
|
"presentation" "podium"
|
|
|
|
"web" "globe"
|
2024-11-23 02:37:42 +00:00
|
|
|
}}
|
|
|
|
{{ $categoryIcon := index $iconDictionary $category }}
|
|
|
|
<a
|
|
|
|
class="category-button"
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
title="{{ humanize $category }}"
|
|
|
|
>
|
2024-12-02 01:33:39 +00:00
|
|
|
{{- partial "fa.html" $categoryIcon -}}
|
2024-11-23 02:37:42 +00:00
|
|
|
</a>
|
2023-05-01 04:18:19 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2024-11-23 02:37:42 +00:00
|
|
|
{{ end }}
|