diff --git a/.github/readme/partials/templated/introduction.md b/.github/readme/partials/templated/introduction.md index 4cf0ec92..8334bb11 100644 --- a/.github/readme/partials/templated/introduction.md +++ b/.github/readme/partials/templated/introduction.md @@ -36,13 +36,31 @@ Generate metrics that can be embedded everywhere, including your GitHub profile <% } %> <%- readme.demo.replace(/ i ? ` ${x}` : x)?.join("\n") %> <% if (cell === "odd") { -%> -<% }}} -%> +<% }}}} { + let cell = 0 + const elements = Object.entries(plugins).filter(([key, value]) => (value.category === "community")&&(!value.deprecation)) + if (elements.length%2) + elements.push(["", {readme:{demo:``}}]) +-%> ๐ŸŽฒ See also community plugins +<% + for (let i = 0; i < elements.length; i+=2) { + const cells = [["even", elements[i]], ["odd", elements[i+1]]] + for (const [cell, [plugin, {name, readme, authors}]] of cells) { + if (cell === "even") { +-%> + +<% } %> <% if (plugin) { %><%= name -%>
by <%- authors.map(author => `@${author}`).join(" ") %> +<%- readme.demo.replace(/([\s\S]+?)<\/td>/, `
Render example$1
`).replace(/ i ? ` ${x}` : x)?.join("\n") %> <% } %> + +<% if (cell === "odd") { +-%> +<% }}}} %> <% { let cell = 0 const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key))) @@ -94,6 +112,11 @@ Generate metrics that can be embedded everywhere, including your GitHub profile + + + Test latest features and patches on ๐Ÿงช Metrics beta! + + Power user?
diff --git a/.github/readme/partials/templated/plugins.community.md b/.github/readme/partials/templated/plugins.community.md index f558e781..580b61c9 100644 --- a/.github/readme/partials/templated/plugins.community.md +++ b/.github/readme/partials/templated/plugins.community.md @@ -9,9 +9,9 @@ elements.push(["", {readme:{demo:``}}]) 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") { %> <% } %> - <% if (plugin) { %><%= name -%><% } %><% + <% if (plugin) { %><%= name -%>
by <%- authors.map(author => `@${author}`).join(" ") %><% } %><% if (cell === "odd") { %> <% }} diff --git a/source/templates/community/README.md b/source/templates/community/README.md index de94102a..0c95a7ab 100644 --- a/source/templates/community/README.md +++ b/source/templates/community/README.md @@ -1,15 +1,11 @@ - - - - -

๐Ÿ“• Community templates

A template capable of rendering markdown from a given template file.
- - -
+ -Community templates are a way to use official releases of [lowlighter/metrics](https://github.com/lowlighter/metrics) while using templates from external repositories (owned or not). + Community templates are a way to use official releases of [lowlighter/metrics](https://github.com/lowlighter/metrics) while using templates from external repositories (owned or not). + + + ## ๐Ÿ“ฎ Using community templates