showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
_icons.html
736 B · 11 lines
1{{/* Icons are Gitea's: file icons from material-icon-theme (f-*,2 static/icons/material/), UI icons from Octicons (i-*, static/icons/octicons/).3 "sprite" is emitted empty; render.Write fills in the symbols the page4 uses, inline, since the CSP blocks data: URLs and external sprites. */}}5{{define "sprite" -}}6<svg class="sprite" width="0" height="0" aria-hidden="true" focusable="false"></svg>7{{- end}}89{{/* the size attributes are fallbacks: CSS sets them, but if the stylesheet10 ever fails to load, icons stay text-sized instead of 300x150 */}}11{{define "icon"}}<svg class="icon icon-{{.}}" width="16" height="16" fill="currentColor" aria-hidden="true" focusable="false"><use href="#i-{{.}}"></use></svg>{{end}}