1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

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 %}
<link rel="shortcut icon" href="{{ base_url }}/assets/images/favicon.ico">
{% endif %}
<meta name="generator" content="mkdocs+mkdocs-material#0.2.1">
<meta name="generator" content="mkdocs+mkdocs-material#1.0.0">
{% endblock %}
{% block htmltitle %}
{% 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="search" type="checkbox" id="search">
<label class="md-overlay" data-md-overlay for="drawer"></label>
{% include "partials/header.html" %}
{% block header %}
{% include "partials/header.html" %}
{% endblock %}
<div class="md-container">
<main class="md-main">
<div class="md-main__inner md-grid">

View File

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