Make Academicon font optional

This commit is contained in:
Arnaud Rebillout
2020-07-26 16:13:58 +07:00
parent 000b3370f4
commit 408dca0b73
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ Additional settings:
- `PROFILE_IMAGE` - image to display in the sidebar, eg. `avatar.png`
- `FONT_AWESOME_CSS` - URL to get Font Awesome as CSS
- `FONT_AWESOME_JS` - URL to get Font Awesome as Javascript
- `FONT_ACADEMICONS` - set to `True` to fetch the [Academicons font](https://jpswalsh.github.io/academicons/)
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,
+3 -1
View File
@@ -27,7 +27,6 @@
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/poole.css" />
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/hyde.css" />
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/syntax.css" />
<link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">
{% if FONT_AWESOME_JS %}
<script src="{{ FONT_AWESOME_JS }}" crossorigin="anonymous"></script>
{% elif FONT_AWESOME_CSS %}
@@ -35,6 +34,9 @@
{% else %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" crossorigin="anonymous">
{% endif %}
{% if FONT_ACADEMICONS %}
<link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css">
{% endif %}
<!-- Feeds -->
{% include 'fragments/feeds.html' %}