diff options
author | EuAndreh <eu@euandre.org> | 2020-11-15 20:05:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-15 20:05:46 -0300 |
commit | 4d2b5be75cbe7ad0948d7cdf4b6bb9a73daece02 (patch) | |
tree | 42765840b257b81a84fb0220a7cd875e5d8e948d | |
parent | Remove files from _slides while still unpublished (diff) | |
download | euandre.org-4d2b5be75cbe7ad0948d7cdf4b6bb9a73daece02.tar.gz euandre.org-4d2b5be75cbe7ad0948d7cdf4b6bb9a73daece02.tar.xz |
Replace spaces by dashes in categories ids and links
Diffstat (limited to '')
-rw-r--r-- | _includes/categories.html | 4 |
1 files changed, 2 insertions, 2 deletions
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> |