diff --git a/layouts/shortcodes/gitlab.html b/layouts/shortcodes/gitlab.html index 4364ce86..ce210dac 100644 --- a/layouts/shortcodes/gitlab.html +++ b/layouts/shortcodes/gitlab.html @@ -1,5 +1,5 @@ -{{- $gitlabData := getJSON (print "https://gitlab.com/api/v4/projects/" (.Get "repo_id")) -}} -{{- with $gitlabData -}} +{{- $gitLabData := getJSON (print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID")) -}} +{{- with $gitLabData -}}