From 8f3d03b1888fed23e6aa07d6077045e673357481 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 28 Aug 2024 22:54:34 +0200 Subject: sync theme --- themes/blowfish/layouts/shortcodes/codeberg.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'themes/blowfish/layouts/shortcodes/codeberg.html') diff --git a/themes/blowfish/layouts/shortcodes/codeberg.html b/themes/blowfish/layouts/shortcodes/codeberg.html index bd52323..a6a8efa 100644 --- a/themes/blowfish/layouts/shortcodes/codeberg.html +++ b/themes/blowfish/layouts/shortcodes/codeberg.html @@ -1,6 +1,6 @@ {{ $id := delimit (slice "codeberg" (partial "functions/uid.html" .)) "-" }} {{- $codebergURL := print "https://codeberg.org/api/v1/repos/" (.Get "repo") -}} -{{- $codebergData := getJSON ($codebergURL) -}} +{{- $codebergData := resources.GetRemote $codebergURL | transform.Unmarshal -}} {{- $codebergColors := .Site.Data.codebergColors -}} {{- with $codebergData -}} @@ -34,14 +34,14 @@ {{ partial "icon.html" "star" }} -
+
{{ .stars_count }}
{{ partial "icon.html" "fork" }} -
+
{{ .forks_count }}
@@ -58,7 +58,7 @@ .then(data => { document.getElementById('{{ $id }}-full_name').innerHTML = data.full_name; document.getElementById('{{ $id }}-description').innerHTML = data.description; - document.getElementById('{{ $id }}-stars_count').innerHTML = data.starts_count; + document.getElementById('{{ $id }}-stars_count').innerHTML = data.stars_count; document.getElementById('{{ $id }}-forks_count').innerHTML = data.forks_count; }) .catch(error => console.error(error)) -- cgit v1.2.3