Files
metrics/source/templates/markdown/partials/topics.ejs
2021-04-09 12:18:01 +02:00

15 lines
874 B
Plaintext

<%_ if (plugins.topics) { _%>
**[📌 <%= {starred:"Starred topics", mastered:"Mastered technologies and topics"}[plugins.topics.mode] %>](https://github.com/<%= user.login %>?tab=stars)**
<%_ if (plugins.topics.error) { _%>
<%= 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, "plus").replace(/#/g, "sharp").replace(/\./g, "").replace(/ /g, "-") %>)
<%_ } _%>
[<%= plugins.topics.list[plugins.topics.list.length-1].name %>](https://github.com/<%= user.login %>?tab=stars)
<%_ } else { _%>
No starred topics
<%_ } _%>
<%_ } _%>