Add markdown template (#209)

This commit is contained in:
Simon Lecoq
2021-04-06 22:22:03 +02:00
committed by GitHub
parent 175018bc67
commit 0b1bb6fcd3
11 changed files with 158 additions and 8 deletions

View File

@@ -55,7 +55,7 @@ And you can customize these heavily with plugins, templates and hundreds of opti
<% } %>
<% {
let cell = 0
const elements = Object.entries(templates).filter(([key, value]) => value)
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))
%>
<table>
<tr>
@@ -83,5 +83,13 @@ And you can customize these heavily with plugins, templates and hundreds of opti
<% if (cell === "odd") {
-%> </tr>
<% }}} -%>
<tr>
<th colspan="2"><a href="source/templates/community/README.md"><%= templates.community.name -%></a></th>
</tr>
<tr>
<td colspan="2" align="center">
<%- templates.community.readme.demo.replace(/<img src=/g, `<img alt="" width="400" src=`)?.split("\n")?.map((x, i) => i ? ` ${x}` : x)?.join("\n") %>
</td>
</tr>
</table>
<% } %>

View File

@@ -14,4 +14,5 @@
* [jasonlong/isometric-contributions](https://github.com/jasonlong/isometric-contributions)
* [jamesgeorge007/github-activity-readme](https://github.com/jamesgeorge007/github-activity-readme)
* [vvo/sourcekarma](https://github.com/vvo/sourcekarma)
* [ryo-ma/github-profile-trophy](https://github.com/ryo-ma/github-profile-trophy)
* [ryo-ma/github-profile-trophy](https://github.com/ryo-ma/github-profile-trophy)
* [teoxoy/profile-readme-stats](https://github.com/teoxoy/profile-readme-stats)