diff options
author | EuAndreh <eu@euandre.org> | 2020-11-14 13:11:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-14 13:51:07 -0300 |
commit | 387402db7c7cad54477471bd2ebe0c19382414a6 (patch) | |
tree | 899daa60d8027a31f3e95c15711cc06ff806df33 /_includes/categories.html | |
parent | Generate feeds for each categorized entries (diff) | |
download | euandre.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.html | 6 |
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 %} |