projects

showcase

A public git mirror

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