mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-08 21:25:56 +01:00
My brother pointed out that, for the uninitiated, the list of icons can be a bit opaque. I've tried to add some context without overburdening the homepage.
10 lines
426 B
HTML
10 lines
426 B
HTML
{{- $cat := "" -}}
|
|
{{ range . -}}
|
|
{{- if ne $cat .category -}}
|
|
{{- if ne $cat "" -}}<label>{{ $cat }}</label></li>{{- end -}}
|
|
{{- $cat = .category -}}
|
|
<li>
|
|
{{- end -}}
|
|
<a href="{{ .url }}" target="_blank" rel="{{ if .rel }}{{ .rel }}{{ else }}me noopener{{ end }}" title="{{ .name | humanize }}">{{- partialCached "svg.html" . . -}}</a>
|
|
{{- end -}}
|
|
<label>{{ $cat }}</label></li>{{- "" -}}
|