Skip to content

Easily inline SVG images in your Blade templates with Statamic

License

Notifications You must be signed in to change notification settings

zawilliams/statamic-blade-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Easily inline SVG images in your Blade templates with Statamic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages