Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 942 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 942 Bytes

Blade SVG for Statamic Statamic 2.11

Use Blade SVG with Statamic in Blade templates.

Installation

Simply copy the BladeSvg folder into site/addons/. That's it!

Configuration

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.

Usage

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>

Acknowledgements