From d47a42054b3caf9ff15317689819ec5d0b753104 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 7 Apr 2021 01:09:21 +0200 Subject: [PATCH] Add Topics markdown template support --- source/templates/markdown/partials/topics.ejs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 source/templates/markdown/partials/topics.ejs diff --git a/source/templates/markdown/partials/topics.ejs b/source/templates/markdown/partials/topics.ejs new file mode 100644 index 00000000..c4355f39 --- /dev/null +++ b/source/templates/markdown/partials/topics.ejs @@ -0,0 +1,12 @@ +<%_ if (plugins.topics) { _%> +**[📌 Starred topics](https://github.com/<%= user.login %>?tab=stars)** + <%_ if (plugins.topics.error) { _%> +<%= plugins.topics.error.message _%> + <%_ } else if (plugins.topics.list.length) { _%> + <%_ for (const {name, icon} of plugins.topics.list) { _%> +* [<%= name %>](https://github.com/topics/<%= name.toLocaleLowerCase().replace(/ /g, "-") %>) + <%_ } _%> + <%_ } else { _%> +Empty RSS feed + <%_ } _%> +<%_ } _%> \ No newline at end of file