feat: add image processing, improvements
This commit is contained in:
@@ -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 }} </span>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user