|
4 | 4 | <head>
|
5 | 5 | <meta charset="utf-8">
|
6 | 6 | <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"> |
13 | 12 |
|
14 |
| - <title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title> |
| 13 | + <title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title> |
15 | 14 |
|
16 | 15 | <link href="{{ base_url }}/css/bootstrap-custom.min.css" rel="stylesheet">
|
17 | 16 | <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
|
60 | 59 | {% endif %}
|
61 | 60 | </head>
|
62 | 61 |
|
63 |
| -<body{% if current_page and current_page.is_homepage %} class="homepage" {% endif %}> |
| 62 | +<body{% if page and page.is_homepage %} class="homepage" {% endif %}> |
64 | 63 |
|
65 | 64 | {% include "nav.html" %}
|
66 | 65 |
|
|
73 | 72 |
|
74 | 73 | <footer class="col-md-12 text-center">
|
75 | 74 | <hr>
|
76 |
| - <p>{% if copyright %} |
77 |
| - <small>{{ copyright }}<br></small> |
| 75 | + <p>{% if config.copyright %} |
| 76 | + <small>{{ config.copyright }}<br></small> |
78 | 77 | {% endif %}
|
79 | 78 | <small>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</p></small>
|
80 | 79 | </footer>
|
@@ -122,7 +121,7 @@ <h4 class="modal-title" id="exampleModalLabel">Search</h4>
|
122 | 121 | </body>
|
123 | 122 |
|
124 | 123 | </html>
|
125 |
| -{% if current_page and current_page.is_homepage %} |
| 124 | +{% if page and page.is_homepage %} |
126 | 125 | <!--
|
127 | 126 | MkDocs version : {{ mkdocs_version }}
|
128 | 127 | Build Date UTC : {{ build_date_utc }}
|
|
0 commit comments