diff --git a/layouts/shortcodes/gitlab.html b/layouts/shortcodes/gitlab.html new file mode 100644 index 00000000..196727db --- /dev/null +++ b/layouts/shortcodes/gitlab.html @@ -0,0 +1,40 @@ +{{- $githubData := getJSON (print "https://gitlab.com/api/v4/projects/" (.Get "repo_id")) -}} +{{- $githubColors := .Site.Data.githubColors -}} +{{- with $githubData -}} + + +
+ +
+ + {{ partial "icon.html" "gitlab" }} + +
+ {{ .name_with_namespace | markdownify | emojify }} +
+
+ +

+ {{ .description | markdownify | emojify }} +

+ +
+ + {{ partial "icon.html" "star" }} + +
+ {{ .star_count }} +
+ + + {{ partial "icon.html" "fork" }} + +
+ {{ .forks_count }} +
+ +
+ +
+
+{{- end -}}