kjaymiller / render_engine_fontawesome

Home Page:https://kjaymiller.github.io/render_engine_fontawesome/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render Engine FontAwesome

Adds the fontawesome iconset to render engine themes.

Converts <i class="fas fa-home"></i> to .

How to use this theme

  1. Install the theme

    pip install render_engine_fontawesome
  2. 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'})

Required Settings

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.