From e63dee0c6e797c14b502d1b8e2024e0392839c17 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Fri, 9 Apr 2021 12:18:01 +0200 Subject: [PATCH] Fix slugs in topics plugin --- source/templates/markdown/partials/topics.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/templates/markdown/partials/topics.ejs b/source/templates/markdown/partials/topics.ejs index 93d19693..7629fc13 100644 --- a/source/templates/markdown/partials/topics.ejs +++ b/source/templates/markdown/partials/topics.ejs @@ -5,7 +5,7 @@ <%= plugins.topics.error.message _%> <%_ } else if (plugins.topics.list.length) { _%> <%_ for (const {name, icon24} of plugins.topics.list.slice(0, plugins.topics.list.length-1)) { _%> -[![](https://img.shields.io/static/v1?style=flat&label=&message=<%= encodeURIComponent(name) %>&color=222&logo=<%= icon24 %>)](https://github.com/topics/<%= name.toLocaleLowerCase().replace(/ /g, "-") %>) +[![](https://img.shields.io/static/v1?style=flat&label=&message=<%= encodeURIComponent(name) %>&color=222&logo=<%= icon24 %>)](https://github.com/topics/<%= name.toLocaleLowerCase().replace(/\+/g, "plus").replace(/#/g, "sharp").replace(/\./g, "").replace(/ /g, "-") %>) <%_ } _%> [<%= plugins.topics.list[plugins.topics.list.length-1].name %>](https://github.com/<%= user.login %>?tab=stars)