From 0727f521dd6b3960a579388e125efe0cb272c1de Mon Sep 17 00:00:00 2001 From: user Date: Fri, 24 Apr 2020 20:03:17 +0200 Subject: [PATCH 1/3] Fix centering for "body" max-width mode --- sass/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/style.scss b/sass/style.scss index 1b27649..225986a 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -3,7 +3,7 @@ // Override water.css body { max-width: none; - margin: 0; + margin: 0 auto; padding: 0; } From 783f7e6abc6bca7c4728340b59188ac921f40660 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 24 Apr 2020 20:17:10 +0200 Subject: [PATCH 2/3] Default stylesheet can be disabled, and we provide a default title --- templates/index.html | 1 - theme.toml | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 8db2dc5..086e422 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,7 +8,6 @@ {% if generate_rss %} {% endif %} - {%- for stylesheet in config.extra.stylesheets %} {%- endfor %} diff --git a/theme.toml b/theme.toml index c8e2f0b..5cf918a 100644 --- a/theme.toml +++ b/theme.toml @@ -12,11 +12,15 @@ demo = "https://thunix.net/~southerntofu/themes/zola/water" # be merged with user data, some kind of prefix or nesting is preferable # Use snake_casing to be consistent with the rest of Zola [extra] +# Base title for pages +title = "water demo" # The default color scheme. Can be either light or dark. # Whichever one you choose, it is overriden if the browser supports it. color = "dark" # A list of additional stylesheets to load from the index template -stylesheets = [] +# By default, some customizations are included as style.css +# Just use stylesheets = [] to remove it entirely. +stylesheets = [ "style.css" ] # Set the max-width for either "main" or "body". Defaults to "main", # switch to "body" for default water.css behavior max_width_for = "main" # Can be either main or body From dd0f3dd185a58aa3b585d96e589aedfd475006e5 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Mon, 4 Jan 2021 21:00:28 +0100 Subject: [PATCH 3/3] Fallback to config title when index title not set --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index e69740a..9c4b858 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ {# TAXONOMY: no section.title here #} - {% block title %}{{ section.title|default(value=taxonomy.name|default(value="")) }}{% endblock %} + {% block title %}{{ section.title|default(value=taxonomy.name|default(value=config.extra.title|default(value=""))) }}{% endblock %} {% if generate_rss %} {% endif %}