+
{{ .full_name | markdownify | emojify }}
-
-
+
+
{{ if .language }} {{ .language }} {{ else }} null {{ end }}
@@ -28,19 +34,34 @@
{{ partial "icon.html" "star" }}
-
+
{{ .stargazers_count }}
{{ partial "icon.html" "fork" }}
-
+
{{- end -}}
\ No newline at end of file
diff --git a/layouts/shortcodes/gitlab.html b/layouts/shortcodes/gitlab.html
index bf56536c..1f2a8fa9 100644
--- a/layouts/shortcodes/gitlab.html
+++ b/layouts/shortcodes/gitlab.html
@@ -1,4 +1,7 @@
-{{- $gitLabData := getJSON (print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID")) -}}
+{{ $id := delimit (slice "gitlab" .Ordinal now.UnixNano) "-" }}
+{{- $gitlabURL := print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID") -}}
+
+{{- $gitLabData := getJSON ($gitlabURL) -}}
{{- with $gitLabData -}}
@@ -8,12 +11,12 @@
{{ partial "icon.html" "gitlab" }}
-
+
{{ .name_with_namespace | markdownify | emojify }}
-
+
{{ .description | markdownify | emojify }}
@@ -21,19 +24,36 @@
{{ partial "icon.html" "star" }}
-
+
{{ .star_count }}
{{ partial "icon.html" "fork" }}
-
+
{{- end -}}
diff --git a/package-lock.json b/package-lock.json
index 6d6f3675..797bfba8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "hugo-blowfish-theme",
- "version": "2.43.0",
+ "version": "2.44.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "hugo-blowfish-theme",
- "version": "2.43.0",
+ "version": "2.44.0",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
@@ -18,7 +18,7 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0",
- "fuse.js": "^6.6.2",
+ "fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"katex": "^0.16.9",
"packery": "^2.1.2",
@@ -27,7 +27,7 @@
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.4.1",
"rimraf": "^5.0.5",
- "tailwindcss": "^3.3.4",
+ "tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"vendor-copy": "^3.0.1"
@@ -1123,9 +1123,9 @@
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
},
"node_modules/fuse.js": {
- "version": "6.6.2",
- "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz",
- "integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==",
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.0.0.tgz",
+ "integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==",
"dev": true,
"engines": {
"node": ">=10"
@@ -2651,9 +2651,9 @@
}
},
"node_modules/tailwindcss": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.4.tgz",
- "integrity": "sha512-JXZNOkggUAc9T5E7nCrimoXHcSf9h3NWFe5sh36CGD/3M5TRLuQeFnQoDsit2uVTqgoOZHLx5rTykLUu16vsMQ==",
+ "version": "3.3.5",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz",
+ "integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==",
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2",
diff --git a/package.json b/package.json
index a9613971..7f485d3b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
- "version": "2.43.1",
+ "version": "2.44.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
@@ -36,7 +36,7 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0",
- "fuse.js": "^6.6.2",
+ "fuse.js": "^7.0.0",
"jquery": "^3.7.1",
"katex": "^0.16.9",
"packery": "^2.1.2",
@@ -45,7 +45,7 @@
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.4.1",
"rimraf": "^5.0.5",
- "tailwindcss": "^3.3.4",
+ "tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"vendor-copy": "^3.0.1"