Minor changes to the willy theme were made.
* Footer added * Page padding changed for dark mode conformity
This commit is contained in:
parent
b3b75b7809
commit
b965d55590
4 changed files with 56 additions and 3 deletions
7
conf.py
7
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 </head>
|
||||
# (translatable)
|
||||
# EXTRA_HEAD_DATA = ""
|
||||
EXTRA_HEAD_DATA = """<link rel="stylesheet" href="/assets/css/index.css">"""
|
||||
EXTRA_HEAD_DATA = """<link rel="stylesheet" href="/assets/css/index.css">
|
||||
<link rel="stylesheet" href="/assets/css/custom.css">"""
|
||||
# Google Analytics or whatever else you use. Added to the bottom of <body>
|
||||
# in the default template (base.tmpl).
|
||||
# (translatable)
|
||||
|
@ -1316,6 +1316,7 @@ BODY_END = """<script src="/assets/js/index.js"></script>"""
|
|||
# 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"]
|
||||
|
|
3
files/assets/css/custom.css
Normal file
3
files/assets/css/custom.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
body{
|
||||
padding: 0;
|
||||
},
|
4
themes/custom-willy-theme/custom-willy-theme.theme
Normal file
4
themes/custom-willy-theme/custom-willy-theme.theme
Normal file
|
@ -0,0 +1,4 @@
|
|||
[Theme]
|
||||
engine = jinja
|
||||
parent = willy-theme
|
||||
|
45
themes/custom-willy-theme/templates/base.tmpl
Normal file
45
themes/custom-willy-theme/templates/base.tmpl
Normal file
|
@ -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) }}
|
||||
{# <html> tag is included by base.html_headstart #}
|
||||
{{ base.html_headstart() }}
|
||||
{% block extra_head %}
|
||||
{# Leave this block alone. #}
|
||||
{% endblock %}
|
||||
{{ template_hooks['extra_head']() }}
|
||||
</head>
|
||||
<body>
|
||||
{#<a href="#content" class="sr-only sr-only-focusable">{{ messages("Skip to main content") }}</a>#}
|
||||
<input id="dark-mode" type="checkbox" />
|
||||
<div class="theme">
|
||||
<div class="layout">
|
||||
{{ menu.html_header() }}
|
||||
<main id="content" class="content">
|
||||
{% block content %}{% endblock %}
|
||||
{{ footer.html_footer() }}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
{{ base.late_load_js() }}
|
||||
{% if date_fanciness != 0 %}
|
||||
<!-- fancy dates -->
|
||||
<script>
|
||||
luxon.Settings.defaultLocale = "{{ luxon_locales[lang] }}";
|
||||
fancydates({{ date_fanciness }}, {{ luxon_date_format }});
|
||||
</script>
|
||||
<!-- end fancy dates -->
|
||||
{% endif %}
|
||||
{% block extra_js %}{% endblock %}
|
||||
<script>
|
||||
baguetteBox.run('div#content', {
|
||||
ignoreClass: 'islink',
|
||||
captions: function(element) {
|
||||
return element.getElementsByTagName('img')[0].alt;
|
||||
}});
|
||||
</script>
|
||||
{{ body_end }}
|
||||
{{ template_hooks['body_end']() }}
|
||||
</body>
|
||||
</html>
|
Reference in a new issue