Name: hexo-fontawesome
Owner: Hexo
Description: A utility function which helps to inline fontawesome SVG files.
Created: 2018-02-25 14:11:44.0
Updated: 2018-05-24 19:30:30.0
Pushed: 2018-05-24 19:30:53.0
Homepage: null
Size: 63
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A plugin for static pages generator Hexo. A utility function which helps to inline fontawesome SVG files.
Install this plugin and all free font-awesome styles:
i hexo-fontawesome --save
Install just a plugin:
i hexo-fontawesome --no-optional --save
Then you need to manually install all needed styles:
i @fortawesome/fontawesome-free-solid --save
i @fortawesome/fontawesome-free-regular --save
i @fortawesome/fontawesome-free-brands --save
This plugin adds a view helpers you can use in the theme to include inline SVG icons from the font-awesome collection.
Returns inline styles needed for the inline SVGs.
Example usage:
le>
- fa_css() %>
yle>
Returns an SVG markup of the chosen icon.
Possible options:
prefix
- the style prefix, fab
for brands, fas
for solid etc. Defaults to fas
fa_inline('twitter', {prefix: 'fab'}) %>
This plugin adds a tag that you can use in the theme to include inline SVG icons from the font-awesome collection.
Returns inline styles needed for the inline SVGs.
Example usage:
ost
Content
Here
a_css %}
Returns an SVG markup of the chosen icon.
prefix
is the style prefix, fab
for brands, fas
for solid etc. Defaults to fas
Example usage:
ost
Content
a_inline twitter fab %}
Here
a_css %}