mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Fixed meta title and description only rendering first character
This commit is contained in:
parent
eb232d43f0
commit
72121517e6
@ -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
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
{% if page and page.meta.description %}
|
||||
<meta name="description" content="{{ page.meta.description | first }}">
|
||||
<meta name="description" content="{{ page.meta.description }}">
|
||||
{% elif config.site_description %}
|
||||
<meta name="description" content="{{ config.site_description }}">
|
||||
{% endif %}
|
||||
@ -42,7 +42,7 @@
|
||||
{% endblock %}
|
||||
{% block htmltitle %}
|
||||
{% if page and page.meta.title %}
|
||||
<title>{{ page.meta.title | first }}</title>
|
||||
<title>{{ page.meta.title }}</title>
|
||||
{% elif page and page.title and not page.is_homepage %}
|
||||
<title>{{ page.title }} - {{ config.site_name }}</title>
|
||||
{% else %}
|
||||
|
@ -42,7 +42,7 @@
|
||||
<!-- Page description -->
|
||||
{% if page and page.meta.description %}
|
||||
<meta name="description"
|
||||
content="{{ page.meta.description | first }}" />
|
||||
content="{{ page.meta.description }}" />
|
||||
{% elif config.site_description %}
|
||||
<meta name="description" content="{{ config.site_description }}" />
|
||||
{% endif %}
|
||||
@ -89,7 +89,7 @@
|
||||
<!-- Site title -->
|
||||
{% block htmltitle %}
|
||||
{% if page and page.meta.title %}
|
||||
<title>{{ page.meta.title | first }}</title>
|
||||
<title>{{ page.meta.title }}</title>
|
||||
{% elif page and page.title and not page.is_homepage %}
|
||||
<title>{{ page.title }} - {{ config.site_name }}</title>
|
||||
{% else %}
|
||||
|
Loading…
Reference in New Issue
Block a user