Compare commits

..

1 commit

Author SHA1 Message Date
goingforbrooke 88da0fef3f
Merge 4f3e58d1c2 into c620187811 2024-06-08 09:03:13 +02:00
3 changed files with 11 additions and 17 deletions

View file

@ -8,9 +8,7 @@
See the live demo (of the default configuration) here: See the live demo (of the default configuration) here:
https://pawroman.github.io/zola-theme-terminimal/ https://pawroman.github.io/zola-theme-terminimal/
Tested with Zola v0.19.2. Tested with Zola v0.17.2. Please note that earlier versions might not work because of breaking changes across Zola versions.
Please note that earlier (and older) versions might not work because of breaking changes across Zola versions.
#### Fork disclaimer #### Fork disclaimer

View file

@ -6,10 +6,10 @@ title = "Zola Terminimal theme"
compile_sass = true compile_sass = true
# The theme supports feeds (RSS and ATOM) # The theme supports feeds (RSS and ATOM)
generate_feeds = true generate_feed = true
# Use `rss.xml` for RSS feeds and `atom.xml` for ATOM. # Use `rss.xml` for RSS feeds and `atom.xml` for ATOM.
feed_filenames = ["rss.xml", "atom.xml"] feed_filename = "atom.xml"
# Optional: enable tags # Optional: enable tags
taxonomies = [ taxonomies = [

View file

@ -13,18 +13,14 @@
{%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%} {%- block open_graph %}{{ head_macros::open_graph(config=config) }}{% endblock open_graph -%}
{%- if config.generate_feeds %} {%- if config.generate_feed %}
{%- for feed in config.feed_filenames %} {%- if "rss" in config.feed_filename %}
{%- if feed is containing('atom') %} {% set feed_type = 'rss+xml' %}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }} Atom Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> {%- else %}
{%- endif %} {% set feed_type = 'atom+xml' %}
{% endif -%}
{%- if feed is containing('rss') %} <link rel="alternate" type="application/{{ feed_type }}" title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
<link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> {% endif -%}
{%- endif %}
{%- endfor %}
{%- endif -%}
{%- if config.extra.favicon %} {%- if config.extra.favicon %}
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}"> <link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") | safe }}" href="{{ config.extra.favicon | safe }}">