Skip to content

Commit

Permalink
Switch to zola 0.19.2 and fix generate_feeds config. (#67)
Browse files Browse the repository at this point in the history
Fixes #62

---------

Co-authored-by: Daniel McNab <[email protected]>
  • Loading branch information
PoignardAzur and DJMcNab authored Sep 12, 2024
1 parent e411cc6 commit 117732d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- name: checkout
uses: actions/[email protected]
- name: build_and_deploy
uses: shalzz/[email protected]
# Also update in README.md and ./main.yml
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
- name: checkout
uses: actions/[email protected]
- name: build_and_deploy
uses: shalzz/[email protected]
# Also update in README.md and ./check.yml
uses: shalzz/[email protected]
env:
# Target branch
PAGES_BRANCH: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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.**
**Note: The site is currently built with Zola version 0.19.2.**

The steps you need to get building the website locally are:

Expand Down
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
<meta property="twitter:title" content="{% if page.title %}{{page.title}}{% else %}{{config.title}}{% endif %}">
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/main.css">
{% if config.generate_feed %}
<link type="application/atom+xml" rel="alternate" href="/{{config.feed_filename}}" title="{{config.title}}">
{% if config.generate_feeds %}
{% for feed_filename in config.feed_filenames %}
<link type="application/atom+xml" rel="alternate" href="/{{feed_filename}}" title="{{config.title}}">
{% endfor %}
{% endif %}
<!-- mathjax support -->
<script>
Expand Down

0 comments on commit 117732d

Please sign in to comment.