From be8de118db913711eb72ae5187d26e54a0055727 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 15 Dec 2023 09:11:47 +0800 Subject: refactor(docs): optmst `docs` dir & `deps` --- src/templates/base.html | 445 ------------------------------------------------ 1 file changed, 445 deletions(-) delete mode 100644 src/templates/base.html (limited to 'src/templates/base.html') diff --git a/src/templates/base.html b/src/templates/base.html deleted file mode 100644 index 8323e76e..00000000 --- a/src/templates/base.html +++ /dev/null @@ -1,445 +0,0 @@ - - -{% import "partials/language.html" as lang with context %} - - - - - - - {% block site_meta %} - - - - - {% if page.meta and page.meta.description %} - - {% elif config.site_description %} - - {% endif %} - - - {% if page.meta and page.meta.author %} - - {% elif config.site_author %} - - {% endif %} - - - {% if page.canonical_url %} - - {% endif %} - - - {% if page.previous_page %} - - {% endif %} - - - {% if page.next_page %} - - {% endif %} - - - {% if "rss" in config.plugins %} - - - {% endif %} - - - - - - - {% endblock %} - - - {% block htmltitle %} - {% if page.meta and page.meta.title %} - {{ page.meta.title }} - {{ config.site_name }} - {% elif page.title and not page.is_homepage %} - {{ page.title | striptags }} - {{ config.site_name }} - {% else %} - {{ config.site_name }} - {% endif %} - {% endblock %} - - - {% block styles %} - - - - {% if config.theme.palette %} - {% set palette = config.theme.palette %} - - {% endif %} - - - {% include "partials/icons.html" %} - {% endblock %} - - - {% block libs %} - {% for script in config.extra.polyfills %} - {{ script | script_tag }} - {% endfor %} - {% endblock %} - - - {% block fonts %} - - - {% if config.theme.font != false %} - {% set text = config.theme.font.get("text", "Roboto") %} - {% set code = config.theme.font.get("code", "Roboto Mono") %} - - - - {% endif %} - {% endblock %} - - - {% for path in config.extra_css %} - - {% endfor %} - - - {% include "partials/javascripts/base.html" %} - - - {% block analytics %} - {% include "partials/integrations/analytics.html" %} - {% endblock %} - - - {% if page.meta and page.meta.meta %} - {% for tag in page.meta.meta %} - - {% endfor %} - {% endif %} - - - {% block extrahead %}{% endblock %} - - - - {% set direction = config.theme.direction or lang.t("direction") %} - {% if config.theme.palette %} - {% set palette = config.theme.palette %} - {% if not palette is mapping %} - {% set palette = palette | first %} - {% endif %} - {% set scheme = palette.scheme | d("default", true) %} - {% set primary = palette.primary | d("indigo", true) %} - {% set accent = palette.accent | d("indigo", true) %} - - {% else %} - - {% endif %} - {% set features = config.theme.features or [] %} - - - {% if not config.theme.palette is mapping %} - {% include "partials/javascripts/palette.html" %} - {% endif %} - - - - - - - - - -
- {% if page.toc | first is defined %} - {% set skip = page.toc | first %} - - {{ lang.t("action.skip") }} - - {% endif %} -
- - -
- {% if self.announce() %} - - {% endif %} -
- - - {% if config.extra.version %} - - {% endif %} - - - {% block header %} - {% include "partials/header.html" %} - {% endblock %} - - -
- - - {% block hero %}{% endblock %} - - - {% block tabs %} - {% if "navigation.tabs.sticky" not in features %} - {% if "navigation.tabs" in features %} - {% include "partials/tabs.html" %} - {% endif %} - {% endif %} - {% endblock %} - - -
-
- - - {% block site_nav %} - - - {% if nav %} - {% if page.meta and page.meta.hide %} - {% set hidden = "hidden" if "navigation" in page.meta.hide %} - {% endif %} - - {% endif %} - - - {% if "toc.integrate" not in features %} - {% if page.meta and page.meta.hide %} - {% set hidden = "hidden" if "toc" in page.meta.hide %} - {% endif %} - - {% endif %} - {% endblock %} - - - {% block container %} -
-
- {% block content %} - {% include "partials/content.html" %} - {% endblock %} -
-
- {% endblock %} - - - {% include "partials/javascripts/content.html" %} -
- - - {% if "navigation.top" in features %} - {% include "partials/top.html" %} - {% endif %} -
- - - {% block footer %} - {% include "partials/footer.html" %} - {% endblock %} -
- - -
-
-
- - - {% if "navigation.instant.progress" in features %} - {% include "partials/progress.html" %} - {% endif %} - - - {% if config.extra.consent %} - - - - {% include "partials/javascripts/consent.html" %} - {% endif %} - - - {% block config %} - {%- set app = { - "base": base_url, - "features": features, - "translations": {}, - "search": "assets/javascripts/workers/search.js" | url - } -%} - - - {%- if config.extra.version -%} - {%- set _ = app.update({ "version": config.extra.version }) -%} - {%- endif -%} - - - {%- if config.extra.tags -%} - {%- set _ = app.update({ "tags": config.extra.tags }) -%} - {%- endif -%} - - - {%- set translations = app.translations -%} - {%- for key in [ - "clipboard.copy", - "clipboard.copied", - "search.result.placeholder", - "search.result.none", - "search.result.one", - "search.result.other", - "search.result.more.one", - "search.result.more.other", - "search.result.term.missing", - "select.version" - ] -%} - {%- set _ = translations.update({ key: lang.t(key) }) -%} - {%- endfor -%} - - - - {% endblock %} - - - {% block scripts %} - - - - {% for script in config.extra_javascript %} - {{ script | script_tag }} - {% endfor %} - {% endblock %} - - -- cgit v1.2.3-70-g09d2