diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
commit | 8f3d03b1888fed23e6aa07d6077045e673357481 (patch) | |
tree | a914b8f43b8486380ccc1c35721b28da2ff7986a /themes/blowfish/layouts/shortcodes/gitlab.html | |
parent | 8db6bd0e555dca050d7d885582100c5ca5ba3aa2 (diff) |
Diffstat (limited to 'themes/blowfish/layouts/shortcodes/gitlab.html')
-rw-r--r-- | themes/blowfish/layouts/shortcodes/gitlab.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/blowfish/layouts/shortcodes/gitlab.html b/themes/blowfish/layouts/shortcodes/gitlab.html index 5b6153c..12f0880 100644 --- a/themes/blowfish/layouts/shortcodes/gitlab.html +++ b/themes/blowfish/layouts/shortcodes/gitlab.html @@ -1,7 +1,7 @@ {{ $id := delimit (slice "gitlab" (partial "functions/uid.html" .)) "-" }} {{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}} -{{- $gitLabData := getJSON ($gitlabURL) -}} +{{- $gitLabData := resources.GetRemote $gitlabURL | transform.Unmarshal -}} {{- with $gitLabData -}} <a id="{{ $id }}" target="_blank" href="{{ .web_url }}" class="cursor-pointer"> |