Add a 'header' template block for easier customisation

This commit is contained in:
Brendan Abbott 2016-12-19 16:20:09 +10:00
parent d2285b4d92
commit 5783e9de08
2 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@
{% else %} {% else %}
<link rel="shortcut icon" href="{{ base_url }}/assets/images/favicon.ico"> <link rel="shortcut icon" href="{{ base_url }}/assets/images/favicon.ico">
{% endif %} {% endif %}
<meta name="generator" content="mkdocs+mkdocs-material#0.2.1"> <meta name="generator" content="mkdocs+mkdocs-material#1.0.0">
{% endblock %} {% endblock %}
{% block htmltitle %} {% block htmltitle %}
{% if page.title %} {% if page.title %}
@ -57,7 +57,9 @@
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="drawer"> <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="drawer">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="search"> <input class="md-toggle" data-md-toggle="search" type="checkbox" id="search">
<label class="md-overlay" data-md-overlay for="drawer"></label> <label class="md-overlay" data-md-overlay for="drawer"></label>
{% block header %}
{% include "partials/header.html" %} {% include "partials/header.html" %}
{% endblock %}
<div class="md-container"> <div class="md-container">
<main class="md-main"> <main class="md-main">
<div class="md-main__inner md-grid"> <div class="md-main__inner md-grid">

View File

@ -124,7 +124,9 @@
<label class="md-overlay" data-md-overlay for="drawer"></label> <label class="md-overlay" data-md-overlay for="drawer"></label>
<!-- Application header --> <!-- Application header -->
{% block header %}
{% include "partials/header.html" %} {% include "partials/header.html" %}
{% endblock %}
<!-- Container, necessary for web-application context --> <!-- Container, necessary for web-application context -->
<div class="md-container"> <div class="md-container">