Skip to content

jamshop/eleventy-plugin-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eleventy Plugin - SVG

A simple shortcode to fetch and optimise SVG assets. Always will always return inline SVG.

Install:

npm install @jamshop/eleventy-plugin-svg

Usage

In .eleventy.js:

eleventyConfig.addPlugin(svgPlugin, {
  input: "src/svg/"
});

In templates:

{% svg "name-of-svg" %}

Filename should be without the extension (plugin assumes .svg).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published