Adds the fontawesome iconset to render engine themes.
Converts <i class="fas fa-home"></i>
to .
-
Install the theme
pip install render_engine_fontawesome
-
Import the theme into your project
from render_engine import Site from render_engine_fontawesome import fontawesome app = Site() app.register_theme(fontawesome) app.site_vars['theme'].update({fontawesome: 'your token here'})
Fontawesome now requires a token to be used. You can get a free token from fontawesome.com.
The plugin looks for the fontawesome
key in site_vars['theme']
key. The value should be your token.