From 4d2b5be75cbe7ad0948d7cdf4b6bb9a73daece02 Mon Sep 17 00:00:00 2001
From: EuAndreh <eu@euandre.org>
Date: Sun, 15 Nov 2020 20:05:46 -0300
Subject: Replace spaces by dashes in categories ids and links

---
 _includes/categories.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to '_includes/categories.html')

diff --git a/_includes/categories.html b/_includes/categories.html
index 23affcf..10a9433 100644
--- a/_includes/categories.html
+++ b/_includes/categories.html
@@ -19,8 +19,8 @@
 {% 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>
+  <h2 id="{{ category | replace:" ", "-" }}">
+    <a href="#{{ category | replace:" ", "-" }}">{{ category }}</a>
     <a href="{% link {{ feed_link }} %}">
       <img class="simple-icon" src="/images/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" />
     </a>
-- 
cgit v1.2.3