Fixed missing URL filter in footer for FontAwesome link

This commit is contained in:
squidfunk 2018-10-23 08:35:56 +02:00
parent fa8d490b16
commit 15e604f797
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-3.x.x (2018-xx-xx)
* Fixed #902: Missing URL filter in footer for FontAwesome link
mkdocs-material-3.0.4 (2018-09-03) mkdocs-material-3.0.4 (2018-09-03)
* Updated Dutch translations * Updated Dutch translations

View File

@ -1,6 +1,6 @@
{% if config.extra.social %} {% if config.extra.social %}
<div class="md-footer-social"> <div class="md-footer-social">
<link rel="stylesheet" href="{{ base_url }}/assets/fonts/font-awesome.css"> <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

@ -24,7 +24,7 @@
{% if config.extra.social %} {% if config.extra.social %}
<div class="md-footer-social"> <div class="md-footer-social">
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="{{ base_url }}/assets/fonts/font-awesome.css" /> 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 <a href="{{ social.link }}" class="md-footer-social__link
fa fa-{{ social.type }}"></a> fa fa-{{ social.type }}"></a>