Moved FontAwesome back into footer

This commit is contained in:
squidfunk 2019-12-22 17:42:58 +01:00
parent a18d0a58e4
commit 6e29fc3723
7 changed files with 10 additions and 22 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -70,9 +70,6 @@
{% if config.extra.manifest %} {% if config.extra.manifest %}
<link rel="manifest" href="{{ config.extra.manifest | url }}"> <link rel="manifest" href="{{ config.extra.manifest | url }}">
{% endif %} {% endif %}
{% if config.extra.social %}
<link rel="stylesheet" href="{{ 'assets/fonts/font-awesome.css' | url }}">
{% endif %}
{% for path in config["extra_css"] %} {% for path in config["extra_css"] %}
<link rel="stylesheet" href="{{ path | url }}"> <link rel="stylesheet" href="{{ path | url }}">
{% endfor %} {% endfor %}

View File

@ -3,6 +3,7 @@
-#} -#}
{% if config.extra.social %} {% if config.extra.social %}
<div class="md-footer-social"> <div class="md-footer-social">
<link rel="stylesheet" href="{{ 'assets/fonts/font-awesome.css' | url }}">
{% for social in config.extra.social %} {% for social in config.extra.social %}
<a href="{{ social.link }}" class="md-footer-social__link fa fa-{{ social.type }}"></a> <a href="{{ social.link }}" class="md-footer-social__link fa fa-{{ social.type }}"></a>
{% endfor %} {% endfor %}

View File

@ -62,9 +62,8 @@ theme:
# Plugins # Plugins
plugins: plugins:
- search: - search:
prebuild_index: false - minify:
# - minify: minify_html: true
# minify_html: true
# Customization # Customization
extra: extra:
@ -135,8 +134,3 @@ nav:
google_analytics: google_analytics:
- !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"] - !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"]
- auto - auto
extra_css:
- test.css
extra_javascript:
- test.js

View File

@ -161,15 +161,6 @@
<link rel="manifest" href="{{ config.extra.manifest | url }}"> <link rel="manifest" href="{{ config.extra.manifest | url }}">
{% endif %} {% endif %}
<!-- FontAwesome for social links -->
{% if config.extra.social %}
<link
rel="stylesheet"
type="text/css"
href="{{ 'assets/fonts/font-awesome.css' | url }}"
/>
{% endif %}
<!-- Custom stylesheets --> <!-- Custom stylesheets -->
{% for path in config["extra_css"] %} {% for path in config["extra_css"] %}
<link rel="stylesheet" type="text/css" href="{{ path | url }}" /> <link rel="stylesheet" type="text/css" href="{{ path | url }}" />

View File

@ -23,6 +23,11 @@
<!-- Social links in footer --> <!-- Social links in footer -->
{% if config.extra.social %} {% if config.extra.social %}
<div class="md-footer-social"> <div class="md-footer-social">
<link
rel="stylesheet"
type="text/css"
href="{{ 'assets/fonts/font-awesome.css' | url }}"
/>
{% for social in config.extra.social %} {% for social in config.extra.social %}
<a <a
href="{{ social.link }}" href="{{ social.link }}"