From ca22b6115b45931187ecc5e3001eb252ade169f3 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 9 Jun 2022 21:57:10 -0700 Subject: Add Theme Switcher --- templates/base.html | 31 ++++--- templates/index.html | 15 +++- templates/macros/head.html | 208 +++++++++++++++++++++++++++++++------------ templates/macros/macros.html | 18 ++-- templates/macros/social.html | 42 ++++----- 5 files changed, 212 insertions(+), 102 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 1c46795..161e147 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,13 +3,15 @@ {%- import "macros/page.html" as page_macros %} {%- import "macros/macros.html" as macros %} - + + {{- macros_head::theme() }} + {{- macros_head::stylesheets() }} + {{- macros_head::js() }} - {{- macros_head::resource() }} - {{- macros_head::stylesheet() }} + {{- macros_head::feed() }} {%- block seo %} {%- if config.extra.title_separator %} {%- set title_separator = " " ~ config.extra.title_separator ~ " " -%} @@ -17,14 +19,15 @@ {%- set title_separator = " | " -%} {%- endif %} {%- endblock seo %} - {{- macros_head::favicons() }} - {{- macros_head::security() }} - {{- macros_head::math() }} - + {{- macros_head::security() }} + {{- macros_head::favicons() }} + {%- if config.build_search_index %} + + {%- endif %} {%- block header %} @@ -32,11 +35,11 @@