diff --git a/CHANGELOG b/CHANGELOG index abaf47642..221cda758 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +mkdocs-material-0.x.x (2016-xx-xx) + + * Fixed #9: Text for prev/next footer navigation should be customizable + * Refactored templates (replaced if/else with modifiers where possible) + mkdocs-material-0.1.3 (2016-02-21) * Fixed #3: Ordered lists within an unordered list have ::before content diff --git a/material/base.html b/material/base.html index a38ef8e8f..83fdfec07 100644 --- a/material/base.html +++ b/material/base.html @@ -34,7 +34,7 @@ {% if config.extra.logo %} {% endif %} - {% set icon = icon | default('assets/images/favicon-e565ddfa3b.ico') %} + {% set icon = icon | default("assets/images/favicon-e565ddfa3b.ico") %} - {% if config.extra.font != 'none' %} - {% set text = 'Ubuntu' %} - {% if config.extra.font and config.extra.font.text %} - {% set text = config.extra.font.text %} - {% endif %} - {% set code = 'Ubuntu Mono' %} - {% if config.extra.font and config.extra.font.code %} - {% set code = config.extra.font.code %} - {% endif %} + {% if config.extra.font != "none" %} + {% set text = config.extra.get("font", {}).text | default("Ubuntu") %} + {% set code = config.extra.get("font", {}).code | default("Ubuntu Mono") %} {% set font = text + ':400,700|' + code | replace(' ', '+') %}