hugo-geekblog/exampleSite/layouts/shortcodes/sprites.html
Robert Kaussow 42968b6a30
feat: auto-load custom svg sprites from assets folder (#40)
BREAKING CHANGE:

The icon gdoc_telescope was removed. If you are using this icon you have to replace it.

Build-in icons are prefixed with gdoc_ now. If you use built-in icons in e.g. menus you have to rename these references!
2021-05-23 22:04:57 +02:00

13 lines
520 B
HTML

<div class="flex flex-wrap justify-center">
{{ range .Site.Data.sprites.geekdoc }}
<div class="flex flex-grid icon-grid">
<div class="flex align-center justify-center icon-grid__line">
<svg class="icon gblog_{{ . }}"><use xlink:href="#gblog_{{ . }}"></use></svg>
</div>
<div class="flex align-center justify-center icon-grid__line icon-grid__line--text">
<span>#gblog_{{ (replace . "_" "_<wbr>") | safeHTML }}</span>
</div>
</div>
{{ end }}
</div>