aboutsummaryrefslogtreecommitdiff
path: root/_includes/categories.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-14 13:11:05 -0300
committerEuAndreh <eu@euandre.org>2020-11-14 13:51:07 -0300
commit387402db7c7cad54477471bd2ebe0c19382414a6 (patch)
tree899daa60d8027a31f3e95c15711cc06ff806df33 /_includes/categories.html
parentGenerate feeds for each categorized entries (diff)
downloadeuandre.org-387402db7c7cad54477471bd2ebe0c19382414a6.tar.gz
euandre.org-387402db7c7cad54477471bd2ebe0c19382414a6.tar.xz
Include link to categories feeds on categories pages
Diffstat (limited to '_includes/categories.html')
-rw-r--r--_includes/categories.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/_includes/categories.html b/_includes/categories.html
index 22e5df3..23affcf 100644
--- a/_includes/categories.html
+++ b/_includes/categories.html
@@ -18,8 +18,12 @@
{% assign unique_categories = categories | sort | uniq %}
{% for category in unique_categories %}
+ {% assign feed_link = "feed." | append:include.kind | append:"-by-category." | append:page.lang | append:"." | append:category | append:".atom" | replace:" ", "-" %}
<h2 id="{{ category }}">
- <a href="#{{ category }}">{{ category }}</a>:
+ <a href="#{{ category }}">{{ category }}</a>
+ <a href="{% link {{ feed_link }} %}">
+ <img class="simple-icon" src="/images/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" />
+ </a>
</h2>
<ul>
{% for entry in entries_with_categories %}