{# NexT version #} {% set version = next_env('version') %} {# Language & Config #} {% set title = __('title') !== 'title' && __('title') || config.title %} {% set subtitle = __('subtitle') !== 'subtitle' && __('subtitle') || config.subtitle %} {% set author = __('author') !== 'author' && __('author') || config.author %} {% set description = __('description') !== 'description' && __('description') || config.description %} {% set html_class = 'theme-next ' + theme.scheme %} {% if theme.motion.enable %} {% set html_class = html_class + ' use-motion' %} {% endif %} {{ partial('_partials/head/head.swig', {}, {cache: theme.cache.enable}) }} {% include '_partials/head/head-unique.swig' %} {% block title %}{% endblock %} {% include '_third-party/analytics/index.swig' %} {{ partial('_scripts/noscript.swig', {}, {cache: theme.cache.enable}) }} {% set container_class = 'container' %} {% if theme.sidebar.position %} {% set container_class = container_class + ' sidebar-position-' + theme.sidebar.position %} {% endif %}
{{ partial('_partials/github-banner.swig', {}, {cache: theme.cache.enable}) }}
{% if theme.scheme === 'Pisces' || theme.scheme === 'Gemini' %} {% include '_partials/header/sub-menu.swig' %} {% endif %}
{% block content %}{% endblock %}
{% include '_partials/comments.swig' %}
{% if theme.sidebar.display !== 'remove' %} {% block sidebar %}{% endblock %} {% endif %}
{% if theme.back2top.enable and not theme.back2top.sidebar %}
{% if theme.back2top.scrollpercent %} 0% {% endif %}
{% endif %} {% if theme.needmoreshare2.enable and theme.needmoreshare2.float.enable %}
{% endif %} {% if theme.baidushare and theme.baidushare.type === "slide" %}
{% include '_partials/share/baidushare.swig' %}
{% endif %} {% if theme.add_this_id %}
{% include '_partials/share/add-this.swig' %}
{% endif %}
{% include '_scripts/vendors.swig' %} {% include '_scripts/commons.swig' %} {% set scheme_script = '_scripts/schemes/' + theme.scheme | lower + '.swig' %} {% include scheme_script %} {% block script_extra %}{% endblock %} {% include '_scripts/next-boot.swig' %} {% include '_scripts/scroll-cookie.swig' %} {% include '_scripts/exturl.swig' %} {% include '_third-party/quicklink.swig' %} {% include '_third-party/comments/index.swig' %} {% include '_third-party/search/index.swig' %} {% include '_third-party/analytics/lean-analytics.swig' %} {% include '_third-party/analytics/firestore.swig' %} {% include '_third-party/math/index.swig' %} {% include '_third-party/pdf.swig' %} {% include '_third-party/mermaid.swig' %} {% include '_third-party/baidu-push.swig' %} {% include '_third-party/schedule.swig' %} {% include '_third-party/needsharebutton.swig' %} {% include '_third-party/rating.swig' %} {% include '_third-party/pangu.swig' %} {% include '_third-party/bookmark.swig' %} {% include '_third-party/copy-code.swig' %} {% include '_third-party/chatra.swig' %} {% include '_third-party/tidio.swig' %}