feat: add image processing, improvements

This commit is contained in:
2026-02-12 22:57:49 +01:00
parent 3cb1797091
commit 889e7047ac
8 changed files with 55 additions and 11 deletions

View File

@@ -1,9 +1,13 @@
{{- $cats := .Page.Params.categories }}
{{- $symbols := dict "news" "🗞️" "presentation" "🎤" "podcast" "🎧" }}
{{- $selection := "" }}
{{- $symbols := dict "article" "🗞️" "presentation" "🎤" "podcast" "🎧" }}
{{- $icon := "" }}
{{- $title := "" }}
{{- range $cat := $cats }}
{{- with index $symbols $cat }}
{{- $selection = (printf "%s  " .) | safeHTML }}
{{- $icon = . }}
{{- $title = $cat | humanize }}
{{- end }}
{{- end }}
{{- return $selection }}
{{- with $icon }}
<span title="{{ $title }}">{{ $icon }}&nbsp;&nbsp;</span>
{{- end -}}