Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to zola 0.19.2 and fix generate_feeds config. #67

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
PoignardAzur marked this conversation as resolved.
Show resolved Hide resolved
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]
PoignardAzur marked this conversation as resolved.
Show resolved Hide resolved
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

PoignardAzur marked this conversation as resolved.
Show resolved Hide resolved
**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
Loading