diff --git a/README.md b/README.md index e7bd75c..cc12492 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,11 @@ Additional settings: - `BIO` - short biography to display in the sidebar, eg. `Hello world` - `PROFILE_IMAGE` - image to display in the sidebar, eg. `avatar.png` -- `FONT_AWESOME` - Fontawesome kit, eg `https://kit.fontawesome.com/{{ FONT_AWESOME }}.js` +- `FONT_AWESOME_CSS` - URL to get Font Awesome as CSS +- `FONT_AWESOME_JS` - URL to get Font Awesome as Javascript + +By default, the theme uses **Fork Awesome**, which is fetched from +`cdn.jsdelivr.net`. Fork Awesome is a drop-in replacement for Font Awesome v4, +but is not compatible with Font Awesome v5 and later, so if you want to use +Font Awesome v5+, setting `FONT_AWESOME_CSS` is not enough, you will also need +to modify the templates. diff --git a/templates/base.html b/templates/base.html index 4cee3cd..61a8937 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,10 +28,12 @@ - {% if FONT_AWESOME %} - + {% if FONT_AWESOME_JS %} + + {% elif FONT_AWESOME_CSS %} + {% else %} - + {% endif %} diff --git a/templates/sidebar.html b/templates/sidebar.html index 7c2c2b9..ac6681d 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -16,7 +16,7 @@ {% for name, link in SOCIAL %} {% if name == 'email' %} - + {% elif name in ['academia', 'acclaim', 'acm', 'acmdl', 'ads', 'arxiv', 'biorxiv', 'ceur', 'coursera', 'cv', 'dataverse', @@ -31,12 +31,12 @@ {% else %} - + {% endif %} {% endfor %} - +