From 58e2c9ae87f09dac79ecf962331ae2c51f4ba7f1 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 26 Jun 2024 21:44:28 +0200 Subject: update the theme --- themes/blowfish/layouts/shortcodes/codeberg.html | 67 ++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 themes/blowfish/layouts/shortcodes/codeberg.html (limited to 'themes/blowfish/layouts/shortcodes/codeberg.html') diff --git a/themes/blowfish/layouts/shortcodes/codeberg.html b/themes/blowfish/layouts/shortcodes/codeberg.html new file mode 100644 index 0000000..bd52323 --- /dev/null +++ b/themes/blowfish/layouts/shortcodes/codeberg.html @@ -0,0 +1,67 @@ +{{ $id := delimit (slice "codeberg" (partial "functions/uid.html" .)) "-" }} +{{- $codebergURL := print "https://codeberg.org/api/v1/repos/" (.Get "repo") -}} +{{- $codebergData := getJSON ($codebergURL) -}} +{{- $codebergColors := .Site.Data.codebergColors -}} +{{- with $codebergData -}} + + +
+ +
+ + {{ partial "icon.html" "codeberg" }} + +
+ {{ .full_name | markdownify }} +
+
+ +

+ {{ .description | markdownify }} +

+ +
+ + +
+ {{ if .language }} {{ .language }} {{ else }} null {{ end }} +
+ + + {{ partial "icon.html" "star" }} + +
+ {{ .stars_count }} +
+ + + {{ partial "icon.html" "fork" }} + +
+ {{ .forks_count }} +
+ +
+ +
+ +
+{{- end -}} -- cgit v1.2.3