From 7ca3ed028dd5169a72f5711246db8484871956b3 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 24 Jun 2024 22:04:40 -0700 Subject: Update for Zola 0.19.1 --- README.md | 2 +- config.toml | 6 +++--- netlify.toml | 2 +- templates/partials/head.html | 14 ++++++++++++-- templates/partials/social.html | 13 +++++++++++-- theme.toml | 2 +- 6 files changed, 29 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8031af0..1717fba 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ The Abridge.css demo is simply using Abridge theme as a submodule: [config.toml] ## Quick Start -This theme requires version 0.18.0 or later of [Zola](https://www.getzola.org/documentation/getting-started/installation/) +This theme requires version 0.19.1 or later of [Zola](https://www.getzola.org/documentation/getting-started/installation/) ```bash git clone https://github.com/jieiku/abridge.git diff --git a/config.toml b/config.toml index 21d5258..e7fa3f3 100644 --- a/config.toml +++ b/config.toml @@ -12,7 +12,7 @@ default_language = "en" compile_sass = true minify_html = false build_search_index = true -generate_feed = true +generate_feeds = true taxonomies = [ # {name = "categories", feed = true}, {name = "tags", feed = true}, @@ -44,7 +44,7 @@ smart_punctuation = false # `...` to `…`, `"quote"` to `“curly”` [languages.fr] title = "Abridge" description = "Abridge est un thème Zola rapide et léger utilisant le html sémantique, le CSS abridge.css class-light et aucun JS obligatoire." -generate_feed = true +generate_feeds = true build_search_index = true search.include_title = true # include title of page/section in index search.include_description = true # include description of page/section in index @@ -58,7 +58,7 @@ taxonomies = [ [languages.es] title = "Abridge" description = "Abridge es un tema de Zola rápido y liviano que utiliza HTML semántico, CSS ligero de clase abridge.css y JS no obligatorio." -generate_feed = true +generate_feeds = true build_search_index = true search.include_title = true # include title of page/section in index search.include_description = true # include description of page/section in index diff --git a/netlify.toml b/netlify.toml index 6f854a3..88cfe4d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "zola build && npm run abridge && zola build" [build.environment] -ZOLA_VERSION = "0.18.0" +ZOLA_VERSION = "0.19.1" [context.deploy-preview] command = "zola build --base-url $DEPLOY_PRIME_URL && npm run abridge && zola build --base-url $DEPLOY_PRIME_URL" diff --git a/templates/partials/head.html b/templates/partials/head.html index 4e6b713..b96531c 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -120,10 +120,20 @@ {#- Rss / Atom Feed #} - {%- if config.generate_feed %} - + + {%- if config.generate_feeds %} + {%- for feed in config.feed_filenames %} + + {%- if feed is containing('atom') %} + {%- endif %} + {%- if feed is containing('rss') %} + + {%- endif %} + + {%- endfor %} + {%- endif %} diff --git a/templates/partials/social.html b/templates/partials/social.html index 1652a55..cf5d058 100644 --- a/templates/partials/social.html +++ b/templates/partials/social.html @@ -1,7 +1,16 @@ {#- Social Footer Icons #}