{{ $id := delimit (slice "github" (partial "functions/uid.html" .)) "-" }} {{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}} {{- $githubData := resources.GetRemote $githubURL | transform.Unmarshal -}} {{- $githubThumbnailURL := print "https://opengraph.githubassets.com/0/" (.Get "repo") -}} {{- $showThumbnail := .Get "showThumbnail" | default true -}} {{- with $githubData -}}
{{- else -}} {{ warnf "github shortcode: unable to fetch %q: %s" $githubURL .Position }} {{- end -}}