Skip to content

Commit

Permalink
Updated settings to support new zola/azola feed config
Browse files Browse the repository at this point in the history
  • Loading branch information
berdandy committed Sep 17, 2024
1 parent 206630d commit 119f3c0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
8 changes: 6 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ default_language = "en"
compile_sass = true
minify_html = false # minify subly breaks some markdown
build_search_index = true
generate_feed = true
generate_feeds = true
taxonomies = [
{name = "categories", feed = true},
{name = "specs", feed = true },
{name = "tags", feed = true },
{name = "authors", feed = true },
]

#feed_filename = "atom.xml"
feed_filenames = [
# "feed.rss",
"atom.xml"
]

#output_dir = "public"
#ignored_content = ["*.{graphml,xlsx}", "temp.*"]
#hard_link_static = false # set to true to hard link instead of copying, useful for very large files.
Expand Down
2 changes: 1 addition & 1 deletion content/builds/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
render = false
transparent = true
template = "builds.html"
generate_feed = true
generate_feeds = true
+++

This is a page with all builds
2 changes: 1 addition & 1 deletion content/guides/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ transparent = false
paginate_by = 5
sort_by = "title"
template = "index_dates.html"
generate_feed = true
generate_feeds = true
+++
6 changes: 3 additions & 3 deletions themes/abridge/templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@


{#- Rss / Atom Feed #}
{%- if config.generate_feed %}
<link rel="alternate" type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="{{ config.title }} Atom/RSS Feed" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" />
{%- endif %}
{%- if config.generate_feeds %}{%- for feed in config.feed_filenames %}
<link rel="alternate" type="{% if feed is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="{{ config.title }} Atom/RSS Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" />
{%- endfor -%}{%- endif %}



Expand Down
5 changes: 4 additions & 1 deletion themes/abridge/templates/partials/social.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{#- Social Footer Icons #}
<nav><div>
{%- if config.generate_feed and config.extra.feed -%}
<a type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom/RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom/RSS Feed"></i></a>{% endif -%}
{%- for feed in config.feed_filenames %}
<a type="{% if feed is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom/RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom/RSS Feed"></i></a>
{%- endfor -%}
{% endif -%}
{%- if config.extra.mail -%}
{%- if config.extra.mail_encode | default(value=true) -%}
{%- set base64_email = config.extra.mail -%}
Expand Down

0 comments on commit 119f3c0

Please sign in to comment.