` blocks. The `highlight.noClasses` parameter must be set to `false` for code copy to function correctly. Read more about [other configuration files](#other-configuration-files) below. |
+| `forgejoDefaultServer` | _Not set_ | The default `server` parameter for the `forgejo` shortcode. |
+| `giteaDefaultServer` | _Not set_ | The default `server` parameter for the `gitea` shortcode. |
| `mainSections` | _Not set_ | The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used. |
| `showViews` | _Not set_ | Whether or not articles and list views are displayed. This requires firebase integrations to be enabled, look below. |
| `showLikes` | _Not set_ | Whether or not articles and list likes are displayed. This requires firebase integrations to be enabled, look below. |
diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md
index 29cb834b..b2b2deb0 100644
--- a/exampleSite/content/docs/shortcodes/index.md
+++ b/exampleSite/content/docs/shortcodes/index.md
@@ -286,6 +286,26 @@ Blowfish also supports automatic conversion of images included using standard Ma
+## 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://v8.next.forgejo.org`|
+
+
+**Example 1:**
+
+```md
+{{* forgejo server="https://v8.next.forgejo.org" repo="forgejo/forgejo" */>}}
+```
+{{< forgejo server="https://v8.next.forgejo.org" repo="forgejo/forgejo" >}}
+
+
+
## Gallery
`gallery` allows you to showcase multiple images at once, in a responsive manner with more varied and interesting layouts.
@@ -345,6 +365,26 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
+## Gitea Card
+
+`gitea` allows you to quickly link a Gitea repository via the gitea API, providing real-time updates on stats such as stars and forks.
+
+
+| Parameter | Description |
+| --------- | ----------------------------------------------------- |
+| `repo` | [String] gitea repo in the format of `username/repo` |
+| `server` | [String] server URL like `https://git.fsfe.org` |
+
+
+**Example 1:**
+
+```md
+{{* gitea server="https://git.fsfe.org" repo="FSFE/fsfe-website" */>}}
+```
+{{< gitea server="https://git.fsfe.org" repo="FSFE/fsfe-website" >}}
+
+
+
## GitHub Card
`github` allows you to quickly link a github repository, all while showing and updating in realtime stats about it, such as the number of stars and forks it has.
diff --git a/layouts/shortcodes/forgejo.html b/layouts/shortcodes/forgejo.html
new file mode 100644
index 00000000..cd6594ab
--- /dev/null
+++ b/layouts/shortcodes/forgejo.html
@@ -0,0 +1,67 @@
+{{ $id := delimit (slice "forgejo" (partial "functions/uid.html" .)) "-" }}
+{{- $forgejoURL := print (.Get "server" | default .Site.Params.forgejoDefaultServer) "/api/v1/repos/" (.Get "repo") -}}
+{{- $forgejoData := getJSON ($forgejoURL) -}}
+{{- $forgejoColors := .Site.Data.forgejoColors -}}
+{{- with $forgejoData -}}
+
+
+
+
+
+
+ {{ partial "icon.html" "forgejo" }}
+
+
+ {{ .full_name | markdownify }}
+
+
+
+
+ {{ .description | markdownify }}
+
+
+
+
+
+
+ {{ if .language }} {{ .language }} {{ else }} null {{ end }}
+
+
+
+ {{ partial "icon.html" "star" }}
+
+
+ {{ .stars_count }}
+
+
+
+ {{ partial "icon.html" "fork" }}
+
+
+ {{ .forks_count }}
+
+
+
+
+
+
+
+{{- end -}}
diff --git a/layouts/shortcodes/gitea.html b/layouts/shortcodes/gitea.html
new file mode 100644
index 00000000..0525a312
--- /dev/null
+++ b/layouts/shortcodes/gitea.html
@@ -0,0 +1,67 @@
+{{ $id := delimit (slice "gitea" (partial "functions/uid.html" .)) "-" }}
+{{- $giteaURL := print (.Get "server" | default .Site.Params.giteaDefaultServer) "/api/v1/repos/" (.Get "repo") -}}
+{{- $giteaData := getJSON ($giteaURL) -}}
+{{- $giteaColors := .Site.Data.giteaColors -}}
+{{- with $giteaData -}}
+
+
+
+
+
+
+ {{ partial "icon.html" "gitea" }}
+
+
+ {{ .full_name | markdownify }}
+
+
+
+
+ {{ .description | markdownify }}
+
+
+
+
+
+
+ {{ if .language }} {{ .language }} {{ else }} null {{ end }}
+
+
+
+ {{ partial "icon.html" "star" }}
+
+
+ {{ .stars_count }}
+
+
+
+ {{ partial "icon.html" "fork" }}
+
+
+ {{ .forks_count }}
+
+
+
+
+
+
+
+{{- end -}}