Skip to content

Commit

Permalink
Merge pull request #41 from mmatyas/meta_template_fix
Browse files Browse the repository at this point in the history
Update the metadata templates to mkdocs 0.17
  • Loading branch information
chrissimpkins authored Mar 12, 2018
2 parents e3be7c4 + 59983bc commit 2223365
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions cinder/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">{% if page_description %}
<meta name="description" content="{{ page_description }}">{% endif %} {% if site_author %}
<meta name="author" content="{{ site_author }}">{% endif %} {% if canonical_url %}
<link rel="canonical" href="{{ canonical_url }}">{% endif %} {% if favicon %}
<link rel="shortcut icon" href="{{ base_url }}/{{ favicon }}">{% else %}
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">{% if config.site_description %}
<meta name="description" content="{{ config.site_description }}">{% endif %} {% if config.site_author %}
<meta name="author" content="{{ config.site_author }}">{% endif %} {% if page.canonical_url %}
<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">

<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>

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

<body{% if current_page and current_page.is_homepage %} class="homepage" {% endif %}>
<body{% if page and page.is_homepage %} class="homepage" {% endif %}>

{% include "nav.html" %}

Expand All @@ -73,8 +72,8 @@

<footer class="col-md-12 text-center">
<hr>
<p>{% if copyright %}
<small>{{ copyright }}<br></small>
<p>{% if config.copyright %}
<small>{{ config.copyright }}<br></small>
{% endif %}
<small>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</p></small>
</footer>
Expand Down Expand Up @@ -122,7 +121,7 @@ <h4 class="modal-title" id="exampleModalLabel">Search</h4>
</body>

</html>
{% if current_page and current_page.is_homepage %}
{% if page and page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
Expand Down

0 comments on commit 2223365

Please sign in to comment.