hexo-theme-next/layout/_layout.njk
2020-08-09 16:15:35 +08:00

54 lines
1.8 KiB
Plaintext

<!DOCTYPE html>
<html lang="{{ config.language }}">
<head>
{{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }}
{% include '_partials/head/head-unique.njk' %}
<title>{% block title %}{% endblock %}</title>
{{ partial('_third-party/analytics/index.njk', {}, {cache: theme.cache.enable}) }}
{{ partial('_scripts/noscript.njk', {}, {cache: theme.cache.enable}) }}
</head>
<body itemscope itemtype="http://schema.org/WebPage"{% if theme.motion.enable %} class="use-motion"{% endif %}>
<div class="headband"></div>
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner">{% include '_partials/header/index.njk' %}</div>
{%- if theme.sidebar.display !== 'remove' %}
{% block sidebar %}{% endblock %}
{%- endif %}
</header>
{{ partial('_partials/widgets.njk', {}, {cache: theme.cache.enable}) }}
<div class="main-inner {% block class %}{% endblock %}">
{% include '_partials/header/sub-menu.njk' %}
{% block content %}{% endblock %}
{% include '_partials/comments.njk' %}
</div>
</main>
<footer class="footer">
<div class="footer-inner">
{% include '_partials/languages.njk' %}
{{ partial('_partials/footer.njk', {}, {cache: theme.cache.enable}) }}
{{ partial('_third-party/statistics/index.njk', {}, {cache: theme.cache.enable}) }}
</div>
</footer>
{{ partial('_scripts/index.njk', {}, {cache: theme.cache.enable}) }}
{{ partial('_third-party/index.njk', {}, {cache: theme.cache.enable}) }}
{%- if theme.pjax %}
<div class="pjax">
{%- endif %}
{% include '_third-party/math/index.njk' %}
{% include '_third-party/quicklink.njk' %}
{{- next_inject('bodyEnd') }}
{%- if theme.pjax %}
</div>
{%- endif %}
</body>
</html>