Add Topics markdown template support
This commit is contained in:
12
source/templates/markdown/partials/topics.ejs
Normal file
12
source/templates/markdown/partials/topics.ejs
Normal file
@@ -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) { _%>
|
||||
* <img src="<%= icon %>" width="24" height="24" alt=""> [<%= name %>](https://github.com/topics/<%= name.toLocaleLowerCase().replace(/ /g, "-") %>)
|
||||
<%_ } _%>
|
||||
<%_ } else { _%>
|
||||
Empty RSS feed
|
||||
<%_ } _%>
|
||||
<%_ } _%>
|
||||
Reference in New Issue
Block a user