mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
fix warning caused by getJSON
This commit is contained in:
parent
18ed67b2e6
commit
121909e809
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{{ $id := delimit (slice "codeberg" (partial "functions/uid.html" .)) "-" }}
|
{{ $id := delimit (slice "codeberg" (partial "functions/uid.html" .)) "-" }}
|
||||||
{{- $codebergURL := print "https://codeberg.org/api/v1/repos/" (.Get "repo") -}}
|
{{- $codebergURL := print "https://codeberg.org/api/v1/repos/" (.Get "repo") -}}
|
||||||
{{- $codebergData := getJSON ($codebergURL) -}}
|
{{- $codebergData := resources.GetRemote $codebergURL | transform.Unmarshal -}}
|
||||||
{{- $codebergColors := .Site.Data.codebergColors -}}
|
{{- $codebergColors := .Site.Data.codebergColors -}}
|
||||||
{{- with $codebergData -}}
|
{{- with $codebergData -}}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ $id := delimit (slice "github" (partial "functions/uid.html" .)) "-" }}
|
{{ $id := delimit (slice "github" (partial "functions/uid.html" .)) "-" }}
|
||||||
{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}}
|
{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}}
|
||||||
{{- $githubData := getJSON ($githubURL) -}}
|
{{- $githubData := resources.GetRemote $githubURL | transform.Unmarshal -}}
|
||||||
{{- $githubColors := .Site.Data.githubColors -}}
|
{{- $githubColors := .Site.Data.githubColors -}}
|
||||||
{{- with $githubData -}}
|
{{- with $githubData -}}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ $id := delimit (slice "gitlab" (partial "functions/uid.html" .)) "-" }}
|
{{ $id := delimit (slice "gitlab" (partial "functions/uid.html" .)) "-" }}
|
||||||
{{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}}
|
{{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}}
|
||||||
|
|
||||||
{{- $gitLabData := getJSON ($gitlabURL) -}}
|
{{- $gitLabData := resources.GetRemote $gitlabURL | transform.Unmarshal -}}
|
||||||
{{- with $gitLabData -}}
|
{{- with $gitLabData -}}
|
||||||
|
|
||||||
<a id="{{ $id }}" target="_blank" href="{{ .web_url }}" class="cursor-pointer">
|
<a id="{{ $id }}" target="_blank" href="{{ .web_url }}" class="cursor-pointer">
|
||||||
|
|
Loading…
Reference in a new issue