From 6e359f5af87ad6247b90dd47eb81289405fd9c92 Mon Sep 17 00:00:00 2001 From: UmmIt Date: Sun, 19 May 2024 13:19:06 +0800 Subject: [PATCH] Add codeberg shortcode to the shortcode page --- exampleSite/content/docs/shortcodes/index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md index 1822684d..7f1c60de 100644 --- a/exampleSite/content/docs/shortcodes/index.md +++ b/exampleSite/content/docs/shortcodes/index.md @@ -361,6 +361,25 @@ Finally, custom GitLab instance URL can be provided, as long as the `api/v4/proj


+## Codeberg Card + +`codeberg` allows you to quickly link a Codeberg repository via the Codeberg API, providing real-time updates on stats such as stars and forks." + + +| Parameter | Description | +| --------- | ----------------------------------------------------- | +| `repo` | [String] codeberg repo in the format of `username/repo` | + + +**Example 1:** + +```md +{{}} +``` +{{< codeberg repo="forgejo/forgejo" >}} + +


+ ## Icon `icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.