{% import "partials/language.html" as lang with context %} {% set feature = config.theme.feature %} {% set palette = config.theme.palette %} {% set font = config.theme.font %} {% block site_meta %} {% if page and page.meta and page.meta.description %} {% elif config.site_description %} {% endif %} {% if page.canonical_url %} {% endif %} {% if page and page.meta and page.meta.author %} {% elif config.site_author %} {% endif %} {% for key in [ "clipboard.copy", "clipboard.copied", "search.language", "search.result.none", "search.result.one", "search.result.other", "search.tokenizer" ] %} {% endfor %} {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} {{ page.meta.title }} {% elif page and page.title and not page.is_homepage %} {{ page.title }} - {{ config.site_name }} {% else %} {{ config.site_name }} {% endif %} {% endblock %} {% block styles %} {% if palette.primary or palette.accent %} {% endif %} {% endblock %} {% block libs %} {% endblock %} {% block fonts %} {% if font != false %} {% endif %} {% endblock %} {% for path in extra_css %} {% endfor %} {% block extrahead %}{% endblock %} {% set direction = config.theme.direction %} {% if palette.primary or palette.accent %} {% set primary = palette.primary | replace(" ", "-") | lower %} {% set accent = palette.accent | replace(" ", "-") | lower %} {% else %} {% endif %} {% set platform = config.extra.repo_icon or config.repo_url %} {% if "github" in platform %} {% include "assets/images/icons/github.svg" %} {% elif "gitlab" in platform %} {% include "assets/images/icons/gitlab.svg" %} {% elif "bitbucket" in platform %} {% include "assets/images/icons/bitbucket.svg" %} {% endif %} {% if page.toc | first is defined %} {{ lang.t('skip.link.title') }} {% endif %} {% block header %} {% include "partials/header.html" %} {% endblock %}
{% block hero %} {% if page and page.meta and page.meta.hero %} {% include "partials/hero.html" with context %} {% endif %} {% endblock %} {% if feature.tabs %} {% include "partials/tabs.html" %} {% endif %}
{% block site_nav %} {% if nav %}
{% include "partials/nav.html" %}
{% endif %} {% if page.toc %}
{% include "partials/toc.html" %}
{% endif %} {% endblock %}
{% block content %} {% if page.edit_url %} {% endif %} {% if not "\x3ch1" in page.content %}

{{ page.title | default(config.site_name, true)}}

{% endif %} {{ page.content }} {% block source %} {% if page and page.meta and page.meta.source %}

{{ lang.t("meta.source") }}

{% set path = page.meta.path | default([""]) %} {% set file = page.meta.source %} {{ file }} {% endif %} {% endblock %} {% endblock %} {% block disqus %} {% if config.extra.disqus and not page.is_homepage %}

{{ lang.t("meta.comments") }}

{% include "partials/integrations/disqus.html" %} {% endif %} {% endblock %}
{% block footer %} {% include "partials/footer.html" %} {% endblock %}
{% block scripts %} {% if lang.t("search.language") != "en" %} {% set languages = lang.t("search.language").split(",") %} {% if languages | length and languages[0] != "" %} {% set path = base_url + "/assets/javascripts/lunr" %} {% for language in languages | map("trim") %} {% if language != "en" %} {% if language == "jp" %} {% endif %} {% if language in ($md-lunr-languages$) %} {% endif %} {% endif %} {% endfor %} {% if languages | length > 1 %} {% endif %} {% endif %} {% endif %} {% for path in extra_javascript %} {% endfor %} {% endblock %} {% block analytics %} {% if config.google_analytics %} {% include "partials/integrations/analytics.html" %} {% endif %} {% endblock %}