From b965d55590693db48b5f316fcc4b78b94cccb927 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Tue, 1 Sep 2020 10:19:54 +0200 Subject: [PATCH] Minor changes to the willy theme were made. * Footer added * Page padding changed for dark mode conformity --- conf.py | 7 +-- files/assets/css/custom.css | 3 ++ .../custom-willy-theme.theme | 4 ++ themes/custom-willy-theme/templates/base.tmpl | 45 +++++++++++++++++++ 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 files/assets/css/custom.css create mode 100644 themes/custom-willy-theme/custom-willy-theme.theme create mode 100644 themes/custom-willy-theme/templates/base.tmpl diff --git a/conf.py b/conf.py index 390e252..2f1b19f 100644 --- a/conf.py +++ b/conf.py @@ -158,8 +158,7 @@ NAVIGATION_ALT_LINKS = { # Name of the theme to use. #THEME = "bootblog4" -#THEME = "custom" -THEME = "willy-theme" +THEME = "custom-willy-theme" # Primary color of your theme. This will be used to customize your theme. # Must be a HEX value. @@ -1236,7 +1235,8 @@ FEED_PLAIN = True # before # (translatable) # EXTRA_HEAD_DATA = "" -EXTRA_HEAD_DATA = """""" +EXTRA_HEAD_DATA = """ + """ # Google Analytics or whatever else you use. Added to the bottom of # in the default template (base.tmpl). # (translatable) @@ -1316,6 +1316,7 @@ BODY_END = """""" # environment but is not recommended for HTTP/2.0 when caching is used. # Defaults to True. # USE_BUNDLES = True +USE_BUNDLES = True # Plugins you don't want to use. Be careful :-) # DISABLED_PLUGINS = ["render_galleries"] diff --git a/files/assets/css/custom.css b/files/assets/css/custom.css new file mode 100644 index 0000000..295b739 --- /dev/null +++ b/files/assets/css/custom.css @@ -0,0 +1,3 @@ +body{ + padding: 0; +}, diff --git a/themes/custom-willy-theme/custom-willy-theme.theme b/themes/custom-willy-theme/custom-willy-theme.theme new file mode 100644 index 0000000..87f98f7 --- /dev/null +++ b/themes/custom-willy-theme/custom-willy-theme.theme @@ -0,0 +1,4 @@ +[Theme] +engine = jinja +parent = willy-theme + diff --git a/themes/custom-willy-theme/templates/base.tmpl b/themes/custom-willy-theme/templates/base.tmpl new file mode 100644 index 0000000..8a65d48 --- /dev/null +++ b/themes/custom-willy-theme/templates/base.tmpl @@ -0,0 +1,45 @@ +{# -*- coding: utf-8 -*- #} +{% import 'base_helper.tmpl' as base with context %} +{% import 'base_menu.tmpl' as menu with context %} +{% import 'base_footer.tmpl' as footer with context %} +{{ set_locale(lang) }} +{# tag is included by base.html_headstart #} +{{ base.html_headstart() }} +{% block extra_head %} +{# Leave this block alone. #} +{% endblock %} +{{ template_hooks['extra_head']() }} + + + {#{{ messages("Skip to main content") }}#} + +
+
+ {{ menu.html_header() }} +
+ {% block content %}{% endblock %} + {{ footer.html_footer() }} +
+
+
+ {{ base.late_load_js() }} + {% if date_fanciness != 0 %} + + + + {% endif %} + {% block extra_js %}{% endblock %} + + {{ body_end }} + {{ template_hooks['body_end']() }} + +