mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
108 lines
3.8 KiB
HTML
108 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html class="no-js">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
|
{% if page_title %}
|
|
<title>{{ page_title }} - {{ site_name }}</title>
|
|
{% elif page_description %}
|
|
<title>{{ site_name }} - {{ page_description }}</title>
|
|
{% else %}
|
|
<title>{{ site_name }}</title>
|
|
{% endif %}
|
|
{% if page_description %}
|
|
<meta name="description" content="{{ page_description }}">
|
|
{% endif %}
|
|
{% if canonical_url %}
|
|
<link rel="canonical" href="{{ canonical_url }}">
|
|
{% endif %}
|
|
{% if site_author %}
|
|
<meta name="author" content="{{ site_author }}">
|
|
{% endif %}
|
|
<meta name="generator" content="mkdocs+mkdocs-material#0.2.1">
|
|
<script src="{{ base_url }}/assets/javascripts/modernizr.js"></script>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.css">
|
|
{% for path in extra_css %}
|
|
<link rel="stylesheet" href="{{ path }}">
|
|
{% endfor %}
|
|
</head>
|
|
<body>
|
|
<input class="md-toggle md-toggle--drawer" type="checkbox" id="drawer">
|
|
<input class="md-toggle md-toggle--search" type="checkbox" id="search">
|
|
<label class="md-overlay" for="drawer"></label>
|
|
{% include "partials/header.html" %}
|
|
<div class="md-container">
|
|
<main class="md-main">
|
|
<div class="md-main__inner md-grid">
|
|
{% set h1 = "\x3ch1 id=" in content %}
|
|
{% if nav %}
|
|
<div class="md-sidebar md-sidebar--primary" data-md-sidebar="primary">
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
{% include "partials/nav.html" %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if toc %}
|
|
<div class="md-sidebar md-sidebar--secondary" data-md-sidebar="secondary">
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
{% include "partials/toc.html" %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<div class="md-content">
|
|
<article class="md-content__inner md-typeset">
|
|
{% block content %}
|
|
{% if edit_uri %}
|
|
<a class="md-button md-button--edit" href="{{ edit_uri }}">
|
|
Edit
|
|
</a>
|
|
{% endif %}
|
|
{{ content }}
|
|
{% endblock %}
|
|
<hr>
|
|
<small class="md-content__copyright">
|
|
{% if copyright %}
|
|
{{ copyright }} –
|
|
{% endif %}
|
|
This document was created with
|
|
<a href="http://www.mkdocs.org">
|
|
MkDocs
|
|
</a>
|
|
and the
|
|
<a href="http://squidfunk.github.io/mkdocs-material/">
|
|
Material
|
|
</a>
|
|
theme.
|
|
</small>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% include "partials/footer.html" %}
|
|
</div>
|
|
<script src="{{ base_url }}/assets/javascripts/application.js"></script>
|
|
<script>
|
|
/* Configuration for application */
|
|
var config = {
|
|
url: {
|
|
base: "{{ base_url }}",
|
|
repo: "{{ repo_url }}"
|
|
}
|
|
};
|
|
/* Initialize application */
|
|
var app = new Application(config);
|
|
app.initialize();
|
|
</script>
|
|
{% for path in extra_javascript %}
|
|
<script src="{{ path }}"></script>
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|