Allow overriding bundled FontAwesome CSS with CDN URL

main
Vitaly Potyarkin 2020-01-22 12:25:10 +03:00
parent 046f2fdd72
commit 1b930951e7
2 changed files with 3 additions and 2 deletions

View File

@ -123,6 +123,8 @@ Visit the [Settings docs](docs/settings.md) for examples:
- **FOOTER_LINKS**: A list of tuples (Title, URL) for footer links. Replaces
default set of links (Authors, Archives, Categories, Tags).
- **BOOTSTRAP_CSS**: URL of Bootstrap CSS file. Use this to enable Boostwatch themes.
- **FONTAWESOME_CSS**: URL of Font Awesome CSS file. Use this if you wish to
use CDN provided version instead of the bundled one.
- **PYGMENTS_STYLE**: Built-in Pygments style for syntax highlighting.
- **HIDE_AUTHORS**: Hide the author(s) of an article - useful for single author sites.
- **RFG_FAVICONS**: Use a Favicon Generator package.

View File

@ -27,13 +27,12 @@
{% endif %}
<link rel="stylesheet" href="{{ url(BOOTSTRAP_CSS or '/theme/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/fontawesome.min.css">
<link rel="stylesheet" href="{{ url(FONTAWESOME_CSS or '/theme/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments/{{ PYGMENTS_STYLE|default('default') }}.min.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/theme.css">
{% for stylesheet in THEME_CSS_OVERRIDES or () %}
<link rel="stylesheet" href="{{ url(stylesheet) }}">
{% endfor %}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
{% include 'include/xml_feeds.html' %}
{% block head %}{% endblock %}