Fixed #16: Favicon could not be set through mkdocs.yml

This commit is contained in:
squidfunk 2016-03-14 21:20:51 +01:00
parent 4b9c8b9a49
commit aedddcbc39
3 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-0.x.x (2016-xx-xx)
* Fixed #16: Favicon could not be set through mkdocs.yml
mkdocs-material-0.2.1 (2016-03-12)
* Fixed #10: Invisible header after closing search bar with ESC key

View File

@ -34,9 +34,9 @@
{% if config.extra.logo %}
<link rel="apple-touch-icon" href="{{ base_url }}/{{ config.extra.logo }}">
{% endif %}
{% set icon = icon | default("assets/images/favicon-e565ddfa3b.ico") %}
<link rel="shortcut icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
<link rel="icon" type="image/x-icon" href="{{ base_url }}/{{ icon }}">
{% set favicon = favicon | default("assets/images/favicon-e565ddfa3b.ico") %}
<link rel="shortcut icon" type="image/x-icon" href="{{ base_url }}/{{ favicon }}">
<link rel="icon" type="image/x-icon" href="{{ base_url }}/{{ favicon }}">
<style>
@font-face {
font-family: 'Icon';

View File

@ -58,11 +58,11 @@
{% endif %}
<!-- Favicon -->
{% set icon = icon | default("assets/images/favicon.ico") %}
{% set favicon = favicon | default("assets/images/favicon.ico") %}
<link rel="shortcut icon" type="image/x-icon"
href="{{ base_url }}/{{ icon }}" />
href="{{ base_url }}/{{ favicon }}" />
<link rel="icon" type="image/x-icon"
href="{{ base_url }}/{{ icon }}" />
href="{{ base_url }}/{{ favicon }}" />
<!-- Configure icons (placed here to omit issues with subdirectories) -->
<style>