mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-07 19:49:21 +00:00
docs: add icon-ref shortcode
This commit is contained in:
10 files changed
+27
-1017
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user