From 72121517e61c11c1540f8d1c2f1f6ee4bbf737b9 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 1 Nov 2017 11:48:44 +0100 Subject: [PATCH] Fixed meta title and description only rendering first character --- CHANGELOG | 4 ++++ material/base.html | 4 ++-- src/base.html | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) 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 %}