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

Merge pull request #72 from brendo/easier-templating

Add a 'header' template block for easier customisation
This commit is contained in:
Martin Donath 2016-12-19 18:17:30 +01:00 committed by GitHub
commit df4351e6bc
2 changed files with 6 additions and 2 deletions

View File

@ -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

@ -123,7 +123,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">