From 83108a202fad31638472bb658113a6fd16854d67 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Thu, 12 Sep 2024 13:21:44 +0200 Subject: [PATCH 1/3] Switch to zola 0.19.2 and fix generate_feeds config. Fixes #62 --- .github/workflows/check.yml | 2 +- .github/workflows/main.yml | 2 +- README.md | 2 -- config.toml | 3 ++- templates/base.html | 6 ++++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 06840db..a6fc7af 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -13,6 +13,6 @@ jobs: - name: checkout uses: actions/checkout@v3.0.0 - name: build_and_deploy - uses: shalzz/zola-deploy-action@v0.17.2 + uses: shalzz/zola-deploy-action@v0.19.2 env: BUILD_ONLY: true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1179d98..0cb292d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: - name: checkout uses: actions/checkout@v3.0.0 - name: build_and_deploy - uses: shalzz/zola-deploy-action@v0.17.2 + uses: shalzz/zola-deploy-action@v0.19.2 env: # Target branch PAGES_BRANCH: gh-pages diff --git a/README.md b/README.md index 8cedd2f..5d951d5 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ available on the website. # Development -**Note: The site currently needs to be built with Zola version 0.17.2. See [#62](https://github.com/linebender/linebender.github.io/issues/62) for details.** - The steps you need to get building the website locally are: 1. [Install Zola](https://www.getzola.org/documentation/getting-started/installation/) diff --git a/config.toml b/config.toml index d61639d..ae93d8b 100644 --- a/config.toml +++ b/config.toml @@ -10,7 +10,8 @@ compile_sass = true # Whether to build a search index to be used later on by a JavaScript library build_search_index = true -generate_feed = true +generate_feeds = true +feed_filenames = [ "atom.xml" ] [markdown] # Whether to do syntax highlighting diff --git a/templates/base.html b/templates/base.html index f194ac6..6f839b4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,8 +17,10 @@ - {% if config.generate_feed %} - + {% if config.generate_feeds %} + {% for feed_filename in config.feed_filenames %} + + {% endfor %} {% endif %}