diff --git a/CHANGELOG b/CHANGELOG index 16dc36b31..7e5eb32e5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +mkdocs-material-2.x.x (2017-xx-xx) + + * Fixed #553: meta title and description only renders first character + mkdocs-material-2.0.1 (2017-10-31) * Fixed error when initializing search diff --git a/material/base.html b/material/base.html index e3ad3cd0b..52658d53d 100644 --- a/material/base.html +++ b/material/base.html @@ -10,7 +10,7 @@ {% if page and page.meta.description %} - + {% elif config.site_description %} {% endif %} @@ -42,7 +42,7 @@ {% endblock %} {% block htmltitle %} {% if page and page.meta.title %} - {{ page.meta.title | first }} + {{ page.meta.title }} {% elif page and page.title and not page.is_homepage %} {{ page.title }} - {{ config.site_name }} {% else %} diff --git a/src/base.html b/src/base.html index 268098ede..f0c747293 100644 --- a/src/base.html +++ b/src/base.html @@ -42,7 +42,7 @@ {% if page and page.meta.description %} + content="{{ page.meta.description }}" /> {% elif config.site_description %} {% endif %} @@ -89,7 +89,7 @@ {% block htmltitle %} {% if page and page.meta.title %} - {{ page.meta.title | first }} + {{ page.meta.title }} {% elif page and page.title and not page.is_homepage %} {{ page.title }} - {{ config.site_name }} {% else %}