docs: improve community plugins

This commit is contained in:
lowlighter
2022-11-21 18:23:53 -05:00
parent d6550bedb2
commit 7c342bf915
3 changed files with 31 additions and 12 deletions

View File

@@ -9,9 +9,9 @@
elements.push(["", {readme:{demo:`<td align="center"><img width="900" height="1" alt=""></td>`}}])
for (let i = 0; i < elements.length; i+=2) {
const cells = [["even", elements[i]], ["odd", elements[i+1]]]
for (const [cell, [plugin, {name, readme}]] of cells) {
for (const [cell, [plugin, {name, readme, authors}]] of cells) {
if (cell === "even") { %> <tr><% } %>
<th><% if (plugin) { %><a href="/source/plugins/community/<%= plugin %>/README.md"><%= name -%></a><% } %></th><%
<th><% if (plugin) { %><a href="/source/plugins/community/<%= plugin %>/README.md"><%= name -%></a><br><sup>by <%- authors.map(author => `<a href="https://github.com/${author}">@${author}</a>`).join(" ") %></sup><% } %></th><%
if (cell === "odd") { %>
</tr>
<% }}