Compare commits

..

No commits in common. "master" and "1.2.0" have entirely different histories.

5 changed files with 36 additions and 44 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 }}">

View file

@ -33,8 +33,7 @@
{% macro earlier_later(page) %} {% macro earlier_later(page) %}
{%- if config.extra.enable_post_view_navigation %} {%- if config.extra.enable_post_view_navigation and page.lower or page.higher %}
{%- if page.lower or page.higher %}
<div class="pagination"> <div class="pagination">
<div class="pagination__title"> <div class="pagination__title">
<span class="pagination__title-h">{{ config.extra.post_view_navigation_prompt }}</span> <span class="pagination__title-h">{{ config.extra.post_view_navigation_prompt }}</span>
@ -60,7 +59,6 @@
</div> </div>
</div> </div>
{% endif -%} {% endif -%}
{% endif -%}
{% endmacro earlier_later %} {% endmacro earlier_later %}

View file

@ -12,7 +12,7 @@
({{ term.pages | length }} post{{ term.pages | length | pluralize }}) ({{ term.pages | length }} post{{ term.pages | length | pluralize }})
</h1> </h1>
<a href="{{ config.base_url | safe }}/tags/"> <a href="{{ config.base_url | safe }}/tags">
Show all tags Show all tags
</a> </a>