{% 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 and page.meta and page.meta.redirect %} {% elif page.canonical_url %} {% endif %} {% if page and page.meta and page.meta.author %} {% elif config.site_author %} {% endif %} {% 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 | striptags }} - {{ config.site_name }} {% else %} {{ config.site_name }} {% endif %} {% endblock %} {% block styles %} {% if palette.primary or palette.accent %} {% endif %} {% if palette.primary %} {% import "partials/palette.html" as map %} {% set primary = map.primary( palette.primary | replace(" ", "-") | lower ) %} {% endif %} {% endblock %} {% block libs %}{% endblock %} {% block fonts %} {% if font != false %} {% endif %} {% endblock %} {% if config.extra.manifest %} {% endif %} {% for file in config["extra_css"] %} {% set path,media = file.split(" ", 1) %} {% if media %} {% else %} {% endif %} {% endfor %} {% block analytics %} {% if config.google_analytics %} {% include "partials/integrations/analytics.html" %} {% endif %} {% endblock %} {% block extrahead %}{% endblock %} {% if palette.primary or palette.accent %} {% set primary = palette.primary | replace(" ", "-") | lower %} {% set accent = palette.accent | replace(" ", "-") | lower %} {% else %} {% endif %} {% if page.toc | first is defined %} {{ lang.t('skip.link.title') }} {% endif %} {% if self.announce() %} {% 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 %} {% block tabs %} {% if feature.tabs %} {% include "partials/tabs.html" %} {% endif %} {% endblock %}
{% 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 %} {% include ".icons/material/pencil.svg" %} {% endif %} {% block source %} {% if page and page.meta and page.meta.source %} {% set repo = config.repo_url %} {% if repo | last == "/" %} {% set repo = repo[:-1] %} {% endif %} {% set path = page.meta.path | default([""]) %} {% set file = page.meta.source %} {% set repo_icon = config.extra.repo_icon | default( "fontawesome/brands/git-alt" ) %} {{ lang.t("meta.source") }} {% include ".icons/" ~ repo_icon ~ ".svg" %} {% endif %} {% endblock %} {% if not "\x3ch1" in page.content %}

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

{% endif %} {{ page.content }} {% if page and page.meta and ( page.meta.git_revision_date_localized or page.meta.revision_date ) %} {% set label = lang.t("source.revision.date") %}
{% if page.meta.git_revision_date_localized %} {{ label }}: {{ page.meta.git_revision_date_localized }} {% elif page.meta.revision_date %} {{ label }}: {{ page.meta.revision_date }} {% endif %}
{% endif %} {% endblock %} {% block disqus %} {% include "partials/integrations/disqus.html" %} {% endblock %}
{% block footer %} {% include "partials/footer.html" %} {% endblock %}
{% block scripts %} {%- set translations = {} -%} {%- for key in [ "clipboard.copy", "clipboard.copied", "search.language", "search.pipeline.stopwords", "search.pipeline.trimmer", "search.result.placeholder", "search.result.none", "search.result.one", "search.result.other", "search.tokenizer" ] -%} {%- set _ = translations.update({ key: lang.t(key) }) -%} {%- endfor -%} {% for path in config["extra_javascript"] %} {% endfor %} {% endblock %}