From fefaf0306c07b55c716189f5307558ed7b5523ce Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 18 Nov 2021 14:38:08 +0100 Subject: Added dark theme --- theme/custom/base.html | 331 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 331 insertions(+) create mode 100755 theme/custom/base.html (limited to 'theme/custom/base.html') diff --git a/theme/custom/base.html b/theme/custom/base.html new file mode 100755 index 0000000..3e9f42b --- /dev/null +++ b/theme/custom/base.html @@ -0,0 +1,331 @@ +{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %} + {%- macro _(msg) -%} + {{ msg % kwargs }} + {%- endmacro -%} +{% endif %} + + + + + + + + + + + {% if page in hidden_pages %} + + {% else %} + + {% endif %} + + {% if USE_GOOGLE_FONTS != False %} + + {% endif %} + + {% if USE_LESS %} + + + {% else %} + + {% endif %} + + {# DARK THEME STYLES #} + {% if THEME_COLOR == "dark" or THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE %} + + {% endif %} + + {# PYGMENTS STYLES #} + {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE or THEME_COLOR == "dark" %} + + {% endif %} + {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or not THEME_COLOR or THEME_COLOR == "light" %} + + {% endif %} + + {% if PLUGINS and 'tipue_search' in PLUGINS %} + + + + + + + {% endif %} + + + + + + {% if CUSTOM_CSS %} + + {% endif %} + + {% if FEED_ALL_ATOM %} + + {% endif %} + + {% if FEED_ALL_RSS %} + + {% endif %} + + {% if FAVICON %} + + + {% endif %} + + {% if GOOGLE_ANALYTICS %} + {% include "partial/ga.html" %} + {% endif %} + + {% if GOOGLE_GLOBAL_SITE_TAG %} + {% include "partial/ggst.html" %} + {% endif %} + + {% if BROWSER_COLOR %} + + + + + + + + + + {% endif %} + + {% if REL_CANONICAL %} + {% if page %} + + {% elif article %} + + {% elif page_name == 'index' and not articles_previous_page %} + + {% elif author or category or tag or page_name == 'index' %} + + {% else %} + + {% endif %} + {% endif %} + {% block meta %} + + + {% include "partial/og.html" %} + {% endblock %} + + {{ SITENAME }}{% block title %}{% endblock %} + + {% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.page_level_ads %} + + + {% endif %} + {% if GOOGLE_TAG_MANAGER %} + {% include "partial/gtm.html" %} + {% endif %} + + + {% if GOOGLE_TAG_MANAGER %} + {% include "partial/gtm_noscript.html" %} + {% endif %} + +
+ {% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.main_menu %} + + + + {% endif %} + + {% if MAIN_MENU %} + + {% endif %} + + {% block content %} + {% endblock %} + +
+ {% if CC_LICENSE %} + {% include "partial/cc_license.html" %} + {% else %} + {% include "partial/copyright.html" %} + {% endif %} +
+
+ + {% if GUAGES %} + {% include "partial/guages.html" %} + {% endif %} + + {% if ADD_THIS_ID %} + + {% endif %} + + {% if (PIWIK_URL and PIWIK_SITE_ID) or (MATOMO_URL and MATOMO_SITE_ID) %} + {% include "partial/matomo.html" %} + {% endif %} + + {% include "partial/jsonld.html" %} + + {% if GITHUB_CORNER_URL %} + {% include 'partial/github.html' %} + {% endif %} + + {% if PLUGINS and 'tipue_search' in PLUGINS %} + + {% endif %} + + {% block additional_js %}{% endblock %} + + -- cgit v1.2.3