From 71f4eda1fd90f0ce1e84682a9422a831dbb293b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 10 Jul 2025 11:59:24 +0100 Subject: [PATCH] corrected forjego shortcode docs --- config/_default/params.toml | 2 +- exampleSite/config/_default/params.toml | 4 ++-- .../content/docs/shortcodes/index.it.md | 6 +++--- .../content/docs/shortcodes/index.ja.md | 6 +++--- exampleSite/content/docs/shortcodes/index.md | 6 +++--- .../content/docs/shortcodes/index.zh-cn.md | 21 +++++++++++++++++++ 6 files changed, 33 insertions(+), 12 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 0b564849..16345db3 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -33,7 +33,7 @@ disableTextInHeader = false fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384", "sha256" giteaDefaultServer = "https://git.fsfe.org" -forgejoDefaultServer = "https://v8.next.forgejo.org" +forgejoDefaultServer = "https://v11.next.forgejo.org" [header] layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 3e8daddf..05f29f4f 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -30,8 +30,8 @@ highlightCurrentMenuArea = true smartTOC = true smartTOCHideUnfocusedChildren = false -# giteaDefaultServer = "https://git.fsfe.org" -# forgejoDefaultServer = "https://v8.next.forgejo.org" +#giteaDefaultServer = "https://git.fsfe.org" +#forgejoDefaultServer = "https://v11.next.forgejo.org" fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384", "sha256" diff --git a/exampleSite/content/docs/shortcodes/index.it.md b/exampleSite/content/docs/shortcodes/index.it.md index 445f106a..a5bfdd81 100644 --- a/exampleSite/content/docs/shortcodes/index.it.md +++ b/exampleSite/content/docs/shortcodes/index.it.md @@ -294,15 +294,15 @@ Blowfish also supports automatic conversion of images included using standard Ma | Parameter | Description | | --------- | ----------------------------------------------------- | | `repo` | [String] forgejo repo in the format of `username/repo`| -| `server` | [String] server URL like `https://v8.next.forgejo.org`| +| `server` | [String] server URL like `https://v11.next.forgejo.org`| **Example 1:** ```md -{{}} +{{}} ``` -{{< forgejo server="https://v8.next.forgejo.org" repo="forgejo/forgejo" >}} +{{< forgejo server="https://v11.next.forgejo.org" repo="a/mastodon" >}}


diff --git a/exampleSite/content/docs/shortcodes/index.ja.md b/exampleSite/content/docs/shortcodes/index.ja.md index 21ad3230..ff728e09 100644 --- a/exampleSite/content/docs/shortcodes/index.ja.md +++ b/exampleSite/content/docs/shortcodes/index.ja.md @@ -292,15 +292,15 @@ Blowfish も、標準の Markdown 構文を使用して含まれる画像の自 | パラメータ | 説明 | | --------- | ----------------------------------------------------- | | `repo` | [文字列] `username/repo` 形式の forgejo リポジトリ| -| `server` | [文字列] `https://v8.next.forgejo.org` のようなサーバー URL| +| `server` | [文字列] `https://v11.next.forgejo.org` のようなサーバー URL| **例1:** ```md -{{}} +{{}} ``` -{{< forgejo server="https://v8.next.forgejo.org" repo="forgejo/forgejo" >}} +{{< forgejo server="https://v11.next.forgejo.org" repo="a/mastodon" >}}


diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md index abafb976..43f45ab0 100644 --- a/exampleSite/content/docs/shortcodes/index.md +++ b/exampleSite/content/docs/shortcodes/index.md @@ -294,15 +294,15 @@ Blowfish also supports automatic conversion of images included using standard Ma | Parameter | Description | | --------- | ----------------------------------------------------- | | `repo` | [String] forgejo repo in the format of `username/repo`| -| `server` | [String] server URL like `https://v8.next.forgejo.org`| +| `server` | [String] server URL like `https://v11.next.forgejo.org`| **Example 1:** ```md -{{}} +{{}} ``` -{{< forgejo server="https://v8.next.forgejo.org" repo="forgejo/forgejo" >}} +{{< forgejo server="https://v11.next.forgejo.org" repo="a/mastodon" >}}


diff --git a/exampleSite/content/docs/shortcodes/index.zh-cn.md b/exampleSite/content/docs/shortcodes/index.zh-cn.md index 4c1d333a..8d9886b2 100644 --- a/exampleSite/content/docs/shortcodes/index.zh-cn.md +++ b/exampleSite/content/docs/shortcodes/index.zh-cn.md @@ -269,6 +269,27 @@ Blowfish 还支持使用标准 Markdown 语法自动转换图像。只需使用 ![Alt text](image.jpg "Image caption") ``` +## Forgejo Card + +`forgejo` allows you to quickly link a Forgejo repository via the forgejo API, providing real-time updates on stats such as stars and forks. + + +| Parameter | Description | +| --------- | ----------------------------------------------------- | +| `repo` | [String] forgejo repo in the format of `username/repo`| +| `server` | [String] server URL like `https://v11.next.forgejo.org`| + + +**Example 1:** + +```md +{{}} +``` +{{< forgejo server="https://v11.next.forgejo.org" repo="a/mastodon" >}} + +


+ + **例如:** ```md