24 lines
696 B
HTML
24 lines
696 B
HTML
{{ with .Param "categories" }}
|
|
{{ range $i, $category := . }}
|
|
{{ if eq $i 0 }}
|
|
{{ with $.Site.GetPage (printf "/%s/%s" "categories" $category) }}
|
|
{{ $iconDictionary := dict
|
|
"video" "video"
|
|
"paper" "book"
|
|
"poster" "presentation"
|
|
"thesis" "graduation-cap"
|
|
"presentation" "podium"
|
|
"web" "globe"
|
|
}}
|
|
{{ $categoryIcon := index $iconDictionary $category }}
|
|
<a
|
|
class="category-button"
|
|
href="{{ .RelPermalink }}"
|
|
title="{{ humanize $category }}"
|
|
>
|
|
{{- partial "fa.html" $categoryIcon -}}
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|