https://github.com/jimmyn/hexo-helper-inline-svg
https://github.com/jimmyn/hexo-helper-inline-svg
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimmyn/hexo-helper-inline-svg
- Owner: jimmyn
- Created: 2017-02-09T12:25:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T14:03:11.000Z (about 7 years ago)
- Last Synced: 2025-02-28T09:29:47.594Z (about 2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hexo-helper-inline-svg
Hexo helper that inlines svg image
## Install
``` bash
$ npm install hexo-helper-inline-svg --save
```## Usage
Add in your theme:
```html
<%- inline_svg('/images/example.svg') %>
```Or if you want to base64 encode the image
```html
![]()
```## License
MIT