-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change feed logic and adjust _index.md for Zola 0.19.1
This commit makes Zola PaperMod work with Zola 0.19.1. Unfortunately, it also breaks Zola 0.18 and before. Also adding generic taxonomy templates that make it possible to use this on sites that, e.g., also have a "categories" taxonomy.
- Loading branch information
Peter
committed
Jul 28, 2024
1 parent
28d9fa9
commit dde5e01
Showing
10 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
+++ | ||
date = "2023-05-11T00:00:00" | ||
template = "archive.html" | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
+++ | ||
title = "Tags" | ||
paginate_by = 10 | ||
generate_feed = true | ||
generate_feeds = true | ||
+++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "index.html" %} | ||
{% block main %} | ||
{% if not title %} | ||
{% set title = "All " ~ taxonomy.name | replace(from="_",to=" ") | title %} | ||
{% set css_class = "terms-" ~ taxonomy.name %} | ||
{% endif %} | ||
|
||
<header class="page-header"> | ||
<h1>{{ title }}</h1> | ||
</header> | ||
|
||
<ul class="terms-tags {{ css_class }}"> | ||
{% for term in terms %} | ||
<li> | ||
<a href="{{ term.permalink }}">{{ term.name }} <sup><strong><sup>{{ term.page_count }}</sup></strong></sup> </a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "index.html" %} | ||
{% block main %} | ||
{% set taxonomy_title = taxonomy.name | replace(from="_",to=" ") | title %} | ||
|
||
<header class="page-header"> | ||
<div class="breadcrumbs"> | ||
<a href="{{ config.base_url }}">Home</a> » | ||
<a href="{{ config.base_url }}/{{ taxonomy.name }}">{{ taxonomy_title }}</a> » | ||
<a href="{{ current_url }}">{{ term.name }}</a> | ||
</div> | ||
<h1>{{ term.name | replace(from="_",to=" ") | title }} | ||
{% for feed_filename in config.feed_filenames %} | ||
<a href="{{ term.permalink ~ feed_filename }}" title="RSS" aria-label="RSS"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" height="23"> | ||
<path d="M4 11a9 9 0 0 1 9 9"></path> | ||
<path d="M4 4a16 16 0 0 1 16 16"></path> | ||
<circle cx="5" cy="19" r="1"></circle> | ||
</svg> | ||
</a> | ||
{% endfor %} | ||
</h1> | ||
</header> | ||
{% for page in term.pages %} | ||
<article class="post-entry"> | ||
<header class="entry-header"> | ||
<h2>{{ page.title }}</h2> | ||
</header> | ||
{% if page.summary %} | ||
<div class="entry-content"> | ||
<p>{{ page.summary | safe }}</p> | ||
</div> | ||
{% endif %} | ||
<footer class="entry-footer"> | ||
{% include "partials/post_meta.html" %} | ||
</footer> | ||
<a class="entry-link" aria-label="post link to {{ page.title }}" href="{{ page.permalink }}"></a> | ||
</article> | ||
{% endfor %} | ||
{% endblock %} |