| For user accounts | @@ -13,6 +17,9 @@ Generate your metrics that you can embed everywhere, including your GitHub profi let cell = 0 const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key))) %> + +And you can customize these heavily with plugins, templates and hundreds of options! +||||
|---|---|---|---|---|
|
diff --git a/.github/readme/partials/setup/action.md b/.github/readme/partials/setup/action.md
index 9c2605d7..552647aa 100644
--- a/.github/readme/partials/setup/action.md
+++ b/.github/readme/partials/setup/action.md
@@ -13,7 +13,7 @@ Assuming your username is `my-github-user`, you can then embed rendered metrics
```
- 💬 How to setup?+💬 How to setup? (click to expand)### 0. Setup your personal repository diff --git a/.github/readme/partials/setup/shared.md b/.github/readme/partials/setup/shared.md index 09308ae8..cde94fc5 100644 --- a/.github/readme/partials/setup/shared.md +++ b/.github/readme/partials/setup/shared.md @@ -9,7 +9,7 @@ For convenience, you can use the shared instance available at [metrics.lecoq.io] This is mostly intended for previews, to enjoy all features consider using GitHub Action instead.
- 💬 Fair use+💬 Fair use (click to expand)To ensure service availability, shared instance has a few limitations: * Images are cached for 15 minutes diff --git a/.github/readme/partials/setup/web.md b/.github/readme/partials/setup/web.md index 40afeae2..b25f29af 100644 --- a/.github/readme/partials/setup/web.md +++ b/.github/readme/partials/setup/web.md @@ -11,7 +11,7 @@ Assuming your username is `my-github-user`, you can then embed rendered metrics ```
- 💬 How to setup?+💬 How to setup? (click to expand)### 0. Prepare your server diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 72fa5f8c..5408c767 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -13,6 +13,7 @@ const __metrics = path.join(path.dirname(url.fileURLToPath(import.meta.url)), "../../..") const __templates = path.join(__metrics, "source/templates") const __plugins = path.join(__metrics, "source/plugins") + const __package = path.join(__metrics, "package.json") //Init const logger = log ? console.debug : () => null @@ -45,8 +46,11 @@ const {classic, repository, community, ...templates} = Templates Templates = {classic, repository, ...templates, community} + //Packaged metadata + const packaged = JSON.parse(`${await fs.promises.readFile(__package)}`) + //Metadata - return {plugins:Plugins, templates:Templates} + return {plugins:Plugins, templates:Templates, packaged} } /**Metadata extractor for templates */ diff --git a/source/plugins/posts/README.md b/source/plugins/posts/README.md index e63ea6eb..3eacee9d 100644 --- a/source/plugins/posts/README.md +++ b/source/plugins/posts/README.md @@ -5,6 +5,9 @@ The recent *posts* plugin displays recent articles you wrote on an external sour
| |||
|---|---|---|---|