docs: add icon-ref shortcode

This commit is contained in:
ZhenShuo Leo
2026-02-05 00:41:08 +08:00
parent 506740b1cf
commit bbe38534d5
10 changed files with 27 additions and 1017 deletions
@@ -0,0 +1,18 @@
{{ $icons := resources.Match "icons/*.svg" }}
<table>
<thead>
<tr>
<th>Icon name</th>
<th>Preview</th>
</tr>
</thead>
<tbody>
{{ range resources.Match "icons/*.svg" }}
{{ $name := strings.TrimSuffix ".svg" (path.Base .Name) }}
<tr>
<td><code>{{ $name }}</code></td>
<td>{{ partial "icon.html" $name }}</td>
</tr>
{{ end }}
</tbody>
</table>