Skip to content

Commit

Permalink
Merge pull request #35 from thedataquarry/update-zola
Browse files Browse the repository at this point in the history
Update fields for new version
  • Loading branch information
prrao87 authored Aug 21, 2024
2 parents cf6b9b2 + d1781d3 commit ef6ced9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ output_dir = "public"
compile_sass = true
minify_html = true
build_search_index = false # Keep this false, search is temporarily unsupported
generate_feed = true
feed_filename = "atom.xml"
generate_feeds = true
feed_filenames = ["atom.xml"]
taxonomies = [
{ name = "tags" },
{ name = "categories" },
Expand Down
2 changes: 1 addition & 1 deletion content/posts/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sort_by = "date"
template = "blog.html"
page_template = "post.html"
insert_anchor_links = "right"
generate_feed = true
generate_feeds = true

[extra]
lang = 'en'
Expand Down
4 changes: 2 additions & 2 deletions templates/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% set rss_icon = load_data(path="static/icon/rss.svg") %}
{% if section.generate_feed -%}
<a href="{{ blog_section_path }}/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
<a href="{{ blog_section_path }}/{{ config.feed_filenames }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% elif config.generate_feed -%}
<a href="/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
<a href="/{{ config.feed_filenames }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% endif %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{% if section.generate_feed -%}
<a href="{{ blog_section_path }}/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% elif config.generate_feed -%}
<a href="/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
<a href="/{{ config.feed_filenames }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% endif %}
{% for link in config.extra.links -%}
<a href="{{ link.url }}" aria-label="{{ link.name }}" target="_blank" rel='noreferrer noopener'>
Expand Down

0 comments on commit ef6ced9

Please sign in to comment.