Skip to content

Commit 59983bc

Browse files
committed
Updated the metadata templates to mkdocs 0.17
1 parent e3be7c4 commit 59983bc

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cinder/base.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
<head>
55
<meta charset="utf-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">{% if page_description %}
8-
<meta name="description" content="{{ page_description }}">{% endif %} {% if site_author %}
9-
<meta name="author" content="{{ site_author }}">{% endif %} {% if canonical_url %}
10-
<link rel="canonical" href="{{ canonical_url }}">{% endif %} {% if favicon %}
11-
<link rel="shortcut icon" href="{{ base_url }}/{{ favicon }}">{% else %}
12-
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">{% if config.site_description %}
8+
<meta name="description" content="{{ config.site_description }}">{% endif %} {% if config.site_author %}
9+
<meta name="author" content="{{ config.site_author }}">{% endif %} {% if page.canonical_url %}
10+
<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
11+
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">
1312

14-
<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
13+
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
1514

1615
<link href="{{ base_url }}/css/bootstrap-custom.min.css" rel="stylesheet">
1716
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
@@ -60,7 +59,7 @@
6059
{% endif %}
6160
</head>
6261

63-
<body{% if current_page and current_page.is_homepage %} class="homepage" {% endif %}>
62+
<body{% if page and page.is_homepage %} class="homepage" {% endif %}>
6463

6564
{% include "nav.html" %}
6665

@@ -73,8 +72,8 @@
7372

7473
<footer class="col-md-12 text-center">
7574
<hr>
76-
<p>{% if copyright %}
77-
<small>{{ copyright }}<br></small>
75+
<p>{% if config.copyright %}
76+
<small>{{ config.copyright }}<br></small>
7877
{% endif %}
7978
<small>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</p></small>
8079
</footer>
@@ -122,7 +121,7 @@ <h4 class="modal-title" id="exampleModalLabel">Search</h4>
122121
</body>
123122

124123
</html>
125-
{% if current_page and current_page.is_homepage %}
124+
{% if page and page.is_homepage %}
126125
<!--
127126
MkDocs version : {{ mkdocs_version }}
128127
Build Date UTC : {{ build_date_utc }}

0 commit comments

Comments
 (0)