sphinx_nervproject_theme/sphinx_nervproject_theme/layout.html

104 lines
3.5 KiB
HTML
Raw Normal View History

2020-05-16 14:27:03 +02:00
<!DOCTYPE html>
<html {% if language is not none %} lang="{{ language }}"{% endif %}>
<head>
<meta charset="{{ encoding }}">
<meta name="viewport" content="width=device-width,initial-scale=1">
{{- metatags }}
{%- block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{%- endblock %}
{# <meta name="description" content="{{ description }}"> #}
{%- block css %}
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1)}}">
<link rel="stylesheet" href="{{ pathto('_static/theme.css', 1)}}">
<link rel="stylesheet" href="{{ pathto('_static/sphinx_nervproject_theme.css', 1)}}">
2020-05-23 22:59:58 +02:00
<link rel="stylesheet" href="{{ pathto('_static/isso.css', 1)}}">
<style id="isso-style"></style>
2020-05-16 14:27:03 +02:00
{%- for css in css_files %}
{%- if css|attr("rel") %}
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
{%- else %}
<link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
{%- endif %}
{%- endfor %}
{%- endblock %}
{%- block scripts %}
{# FIXME: use link-preload #}
<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
{% if theme_fathom %}
{%- include "util/fathom.html" %}
{% endif %}
<!-- sphinx script_files -->
{%- for scriptfile in script_files %}
{{ js_tag(scriptfile) }}
{%- endfor %}
{# press js #}
<script src="{{ pathto('_static/theme-vendors.js', 1)}}"></script>
<script src="{{ pathto('_static/theme.js', 1)}}" defer></script>
{%- endblock %}
{%- if pageurl %}
<link rel="canonical" href="{{ pageurl }}" />
{%- endif %}
{# TODO: opensearch #}
{%- if favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
{%- endif %}
{%- include "util/linktags.html" %}
{%- block extrahead %} {% endblock %}
</head>
<body>
<div id="app" class="theme-container" :class="pageClasses">
{%- block container %}
{%- block header %}{%- include "util/navbar.html" %}{% endblock %}
{# close sidebar when clicked out of it #}
<div class="sidebar-mask" @click="toggleSidebar(false)">
</div>
<div id="appflex">
{%- block sidebar %}
<sidebar @toggle-sidebar="toggleSidebar">
{# sidebar navlinks displayed only on mobile #}
<navlinks>
{% block side_links %}
{%- include "util/navlinks.html" %}
{%- include "util/extlinks.html" %}
{% endblock %}
</navlinks>
{%- if sidebars != None %}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- endif %}
</sidebar>
{%- endblock %}
<page>
{%- block document %}
{% block body_header %}
{%- include "util/bodyheader.html" %}
{%- endblock body_header %}
<main class="content">
{% block body %} {% endblock %}
</main>
{%- endblock %}
</page>
</div>
{%- block footer %}
{%- include "util/pagenav.html" %}
{%- include "util/footer.html" %}
{%- endblock footer %}
{%- endblock container %}
</div>
{% block footer_scripts %}
{% endblock %}
</body>
</html>