Use Blade SVG with Statamic in Blade templates.
Simply copy the BladeSvg
folder into site/addons/
. That's it!
You can set all of the settings under the addon's settings page. You can get to it from the Addons page and click those 3 dots -> Settings.
The default path for SVGs is /assets/svg
and the default SVG sprite path is /assets/svg/spritesheet.svg
.
Just use it like you would normally use Blade SVG with Laravel Blade templates:
<a href="/settings">
@svg('cog', 'icon-lg', ['id' => 'settings-icon']) Settings
</a>
- Thanks to Adam Wathan for his Blade SVG package