Merge branch 'nunocoracao:main' into main

This commit is contained in:
Edoardo Rosa 2023-11-16 21:33:10 +01:00 committed by GitHub
commit 764ce924e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
101 changed files with 219 additions and 361 deletions

View file

@ -12,7 +12,7 @@ jobs:
with:
ref: "${{ github.head_ref }}"
- name: Install dependencies and Build Theme
uses: actions/setup-node@v3
uses: actions/setup-node@v4
- run: npm install
- run: npm run assets
- name: Commit and push Chart.js changes

View file

@ -1,6 +1,6 @@
/*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>

After

Width:  |  Height:  |  Size: 256 B

File diff suppressed because one or more lines are too long

View file

@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0"
max = "0.119.0"
max = "0.120.3"

View file

@ -58,6 +58,7 @@ title = "Blowfish"
# { tumblr = "https://username.tumblr.com" },
# { twitch = "https://twitch.tv/username" },
# { twitter = "https://twitter.com/username" },
# { x-twitter = "https://twitter.com/username" },
# { whatsapp = "https://wa.me/phone-number" },
# { youtube = "https://youtube.com/username" },
# { ko-fi = "https://ko-fi.com/username" },

View file

@ -25,7 +25,7 @@
"url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s"
},
"twitter": {
"icon": "twitter",
"icon": "x-twitter",
"title": "sharing.twitter",
"url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
},

View file

@ -19,7 +19,7 @@ title = "Blowfish"
headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
links = [
{ twitter = "https://twitter.com/burufugu" },
{ x-twitter = "https://twitter.com/burufugu" },
{ mastodon = "https://masto.ai/@blowfish" },
{ github = "https://github.com/nunocoracao/blowfish" },
]

View file

@ -58,7 +58,7 @@
[[main]]
identifier = "twitter"
pre = "twitter"
pre = "x-twitter"
url = "https://twitter.com/burufugu"
weight = 200

View file

@ -89,7 +89,7 @@ smartTOCHideUnfocusedChildren = false
constrainItemsWidth = false
[sitemap]
excludedKinds = ["taxonomy","term"]
excludedKinds = []
[taxonomy]
showTermCount = true

View file

@ -1,19 +0,0 @@
---
title: "TEST"
date: 2022-06-13T20:55:37+01:00
draft: true
showDate : false
showDateUpdated : false
showHeadingAnchors : false
showPagination : false
showReadingTime : false
showTableOfContents : true
showTaxonomies : false
showWordCount : false
showSummary : false
sharingLinks : false
cardView: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -1,7 +0,0 @@
---
title: "Charts"
date: 2019-03-06
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
tags: ["chart", "sample", "graph", "shortcodes"]
showDate: false
---

View file

@ -106,5 +106,6 @@ The full list of built-in icons and their corresponding names can referenced bel
| twitter | {{< icon twitter >}} |
| wand-magic-sparkles | {{< icon wand-magic-sparkles >}} |
| whatsapp | {{< icon whatsapp >}} |
| x-twitter | {{< icon x-twitter >}} |
| xmark | {{< icon xmark >}} |
| youtube | {{< icon youtube >}} |

View file

@ -2,7 +2,7 @@
title: "adilhyz.github.io"
tags: [Personal site]
externalUrl: "https://adilhyz.github.io"
date: 9938-08-08
date: 9939-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -2,7 +2,7 @@
title: "bbagwang.com"
tags: [Personal site]
externalUrl: "https://bbagwang.com"
date: 9944-08-08
date: 9945-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -2,7 +2,7 @@
title: "deepumohan.com/tech"
tags: [Technology Blog]
externalUrl: "https://deepumohan.com/tech/"
date: 9935-08-08
date: 9936-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -2,7 +2,7 @@
title: "gma.name"
tags: [Personal site]
externalUrl: "https://gma.name"
date: 9941-08-08
date: 9942-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

@ -2,7 +2,7 @@
title: "jamiemoxon.tech"
tags: [Personal site]
externalUrl: "https://jamiemoxon.tech"
date: 9943-08-08
date: 9944-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View file

@ -1,8 +1,8 @@
---
title: "jahsehj.github.io"
tags: [Personal site mainly in Chinese]
externalUrl: "https://jahsehj.github.io/"
date: 9947-08-08
title: "joush007.github.io"
tags: [Personal Site]
externalUrl: "https://joush007.github.io"
date: 9934-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View file

@ -2,7 +2,7 @@
title: "jundimubarok.com"
tags: [Personal site]
externalUrl: "https://jundimubarok.com/"
date: 9946-08-08
date: 9947-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,13 @@
---
title: "kylemalloy.com"
tags: [Personal site]
externalUrl: "https://kylemalloy.com"
date: 9935-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View file

@ -2,7 +2,7 @@
title: "mayer.life"
tags: [Personal site]
externalUrl: "https://mayer.life"
date: 9940-08-08
date: 9941-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View file

@ -1,7 +1,7 @@
---
title: "nunocoracao.com"
title: "n9o.xyz"
tags: [Personal site,Theme author]
externalUrl: "https://nunocoracao.com"
externalUrl: "https://n9o.xyz"
date: 9999-08-08
showDate: false
showAuthor: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -2,7 +2,7 @@
title: "ohdmire.github.io"
tags: [Personal site]
externalUrl: "https://ohdmire.github.io"
date: 9937-08-08
date: 9938-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View file

@ -0,0 +1,13 @@
---
title: "rejowski.xyz"
tags: [Personal Site]
externalUrl: "https://rejowski.xyz/"
date: 9933-08-08
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
showLikes: false
showViews: false
layoutBackgroundHeaderSpace: false
---

View file

@ -2,7 +2,7 @@
title: "ricklan.photography"
tags: [Personal site]
externalUrl: "https://ricklan.photography"
date: 9936-08-08
date: 9937-08-08
showDate: false
showAuthor: false
showReadingTime: false

View file

@ -2,7 +2,7 @@
title: "scottmckendry.tech"
tags: [Personal site]
externalUrl: "https://scottmckendry.tech"
date: 9939-08-08
date: 9940-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -2,7 +2,7 @@
title: "theindiecoder.cloud"
tags: [Personal site]
externalUrl: "https://theindiecoder.cloud"
date: 9942-08-08
date: 9943-08-08
showDate: false
showAuthor: false
showReadingTime: false

View file

@ -1,7 +1,7 @@
[
{
"title": "nunocoracao.com",
"url": "https://nunocoracao.com",
"title": "n9o.xyz",
"url": "https://n9o.xyz",
"tags": [
"Personal site",
"Theme author"
@ -364,13 +364,6 @@
"Personal site"
]
},
{
"title": "jahsehj.github.io",
"url": "https://jahsehj.github.io/",
"tags": [
"Personal site mainly in Chinese"
]
},
{
"title": "jundimubarok.com",
"url": "https://jundimubarok.com/",
@ -454,5 +447,26 @@
"tags": [
"Technology Blog"
]
},
{
"title": "kylemalloy.com",
"url": "https://kylemalloy.com",
"tags": [
"Personal site"
]
},
{
"title": "joush007.github.io",
"url": "https://joush007.github.io",
"tags": [
"Personal Site"
]
},
{
"title": "rejowski.xyz",
"url": "https://rejowski.xyz/",
"tags": [
"Personal Site"
]
}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 139 KiB

View file

@ -2,7 +2,7 @@
title: "vkmki001.github.io"
tags: [Personal site]
externalUrl: "https://vkmki001.github.io/"
date: 9945-08-08
date: 9946-08-08
showDate: false
showAuthor: false
showReadingTime: false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View file

@ -1,28 +1,23 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Data.Pages }}
{{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }}
{{ if and (.Param "xml" | default true) (not (isset .Params "externalUrl")) }}
{{- if .Permalink -}}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.Lang }}"
href="{{ .Permalink }}"
/>{{ end }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.Lang }}"
href="{{ .Permalink }}"
/>{{ end }}
</url>
{{- end -}}
{{ end }}
{{ end }}
{{ end }}
{{ range .Data.Pages }}{{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }}{{ if and (.Param "xml" | default true) (or (not .Params.externalUrl) (and (.Params.externalUrl) (and (not (hasPrefix .Params.externalUrl "http://")) (not (hasPrefix .Params.externalUrl "https://"))))) }}
{{- if .Permalink -}}{{ $link := .Permalink }}{{ if .Params.externalUrl }}{{ $link = printf "%s%s" .Site.BaseURL (substr .Params.externalUrl 1) }}{{ end }}
<url>
<loc>{{ $link }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
href="{{ .Permalink }}"
/>{{ end }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
href="{{ $link }}"
/>{{ end }}
</url>
{{- end -}}{{ end }}{{ end }}{{ end }}
</urlset>

View file

@ -50,7 +50,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML }}
{{ end }}
{{/* Output draft label */}}

View file

@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View file

@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View file

@ -29,7 +29,7 @@
<div class="flex flex-row flex-wrap items-center">
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" }}
{{ delimit . "<span class=\"px-2 text-primary-500\">&middot;</span>" | safeHTML}}
{{ end }}
</div>

View file

@ -3,7 +3,7 @@
{{ $images := .Page.Resources.Match (.Get "images") }}
{{ $interval := default "2000" (.Get "interval") }}
<div id="{{ $id }}" class="relative" data-te-carousel-init data-te-carousel-slide>
<div id="{{ $id }}" class="relative" data-te-carousel-init data-te-ride="carousel">
<div class="absolute right-0 bottom-0 left-0 z-[2] mx-[15%] mb-10 flex list-none justify-center p-0"
data-te-carousel-indicators>

View file

@ -1,26 +1,32 @@
{{- $githubData := getJSON (print "https://api.github.com/repos/" (.Get "repo")) -}}
{{ $id := delimit (slice "github" .Ordinal now.UnixNano) "-" }}
{{- $githubURL := print "https://api.github.com/repos/" (.Get "repo") -}}
{{- $githubData := getJSON ($githubURL) -}}
{{- $githubColors := .Site.Data.githubColors -}}
{{- with $githubData -}}
<a target="_blank" href="{{ .html_url }}" class="cursor-pointer">
<div class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md backdrop-blur shadow-2xl">
<a id="{{ $id }}" target="_blank" href="{{ .html_url }}" class="cursor-pointer">
<div
class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border rounded-md backdrop-blur shadow-2xl">
<div class="flex items-center">
<span class="text-2xl text-neutral-800 dark:text-neutral" style="margin-right:10px;">
{{ partial "icon.html" "github" }}
</span>
<div class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
<div
id="{{ $id }}-full_name"
class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
{{ .full_name | markdownify | emojify }}
</div>
</div>
<p class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
{{ .description | markdownify | emojify }}
</p>
<div class="m-0 mt-2 flex items-center">
<span class="mr-1 inline-block h-3 w-3 rounded-full" style="background-color: {{ if .language }} {{- index $githubColors .language -}} {{ else }} #0077b6 {{ end }}"></span>
<span class="mr-1 inline-block h-3 w-3 rounded-full"
style="background-color: {{ if .language }} {{- index $githubColors .language -}} {{ else }} #0077b6 {{ end }}"></span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ if .language }} {{ .language }} {{ else }} null {{ end }}
</div>
@ -28,19 +34,34 @@
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "star" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-stargazers" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .stargazers_count }}
</div>
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "fork" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-forks" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .forks }}
</div>
</div>
</div>
<script>
fetch({{ $githubURL }}, {
headers: new Headers({
'User-agent': 'Mozilla/4.0 Custom User Agent'
})
})
.then(response => response.json())
.then(data => {
document.getElementById('{{ $id }}-full_name').innerHTML = data.full_name;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
document.getElementById('{{ $id }}-stargazers').innerHTML = data.stargazers_count;
document.getElementById('{{ $id }}-forks').innerHTML = data.forks;
})
.catch(error => console.error(error))
</script>
</a>
{{- end -}}

View file

@ -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 -}}
<a target="_blank" href="{{ .html_url }}" class="cursor-pointer">
@ -8,12 +11,12 @@
<span class="text-2xl text-neutral-800 dark:text-neutral" style="margin-right:10px;">
{{ partial "icon.html" "gitlab" }}
</span>
<div class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
<div id="{{ $id }}-name_with_namespace" class="m-0 font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral">
{{ .name_with_namespace | markdownify | emojify }}
</div>
</div>
<p class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
<p id="{{ $id }}-description" class="m-0 mt-2 text-md text-neutral-800 dark:text-neutral">
{{ .description | markdownify | emojify }}
</p>
@ -21,19 +24,36 @@
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "star" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-star_count" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .star_count }}
</div>
<span class="text-md mr-1 text-neutral-800 dark:text-neutral">
{{ partial "icon.html" "fork" }}
</span>
<div class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
<div id="{{ $id }}-forks_count" class="m-0 mr-5 text-md text-neutral-800 dark:text-neutral">
{{ .forks_count }}
</div>
</div>
</div>
<script>
console.log({{ $gitlabURL }})
fetch({{ $gitlabURL }}, {
headers: new Headers({
'User-agent': 'Mozilla/4.0 Custom User Agent'
})
})
.then(response => response.json())
.then(data => {
console.log(data)
document.getElementById('{{ $id }}-name_with_namespace').innerHTML = data.name_with_namespace;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
document.getElementById('{{ $id }}-star_count').innerHTML = data.star_count;
document.getElementById('{{ $id }}-forks_count').innerHTML = data.forks_count;
})
.catch(error => console.error(error))
</script>
</a>
{{- end -}}

106
package-lock.json generated
View file

@ -1,33 +1,33 @@
{
"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": {
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@tailwindcss/forms": "^0.5.6",
"commander": "^11.0.0"
"commander": "^11.1.0"
},
"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",
"prettier": "^3.0.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.3.8",
"puppeteer": "^21.4.1",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"vendor-copy": "^3.0.1"
@ -227,9 +227,9 @@
}
},
"node_modules/@puppeteer/browsers": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.1.tgz",
"integrity": "sha512-nIb8SOBgDEMFY2iS2MdnUZOg2ikcYchRrBoF+wtdjieRFKR2uGRipHY/oFLo+2N6anDualyClPzGywTHRGrLfw==",
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.8.0.tgz",
"integrity": "sha512-TkRHIV6k2D8OlUe8RtG+5jgOF/H98Myx0M6AOafC8DdNVOFiBSFa5cpRDtpm8LXOa9sVwe0+e6Q3FC56X/DZfg==",
"dev": true,
"dependencies": {
"debug": "4.3.4",
@ -238,7 +238,7 @@
"proxy-agent": "6.3.1",
"tar-fs": "3.0.4",
"unbzip2-stream": "1.4.3",
"yargs": "17.7.1"
"yargs": "17.7.2"
},
"bin": {
"browsers": "lib/cjs/main-cli.js"
@ -280,9 +280,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "20.8.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz",
"integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==",
"version": "20.8.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz",
"integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==",
"dev": true,
"optional": true,
"dependencies": {
@ -290,9 +290,9 @@
}
},
"node_modules/@types/yauzl": {
"version": "2.10.1",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.1.tgz",
"integrity": "sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw==",
"version": "2.10.2",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.2.tgz",
"integrity": "sha512-Km7XAtUIduROw7QPgvcft0lIupeG8a8rdKL8RiSyKvlE7dYY31fEn41HVuQsRFDuROA8tA4K2UVL+WdfFmErBA==",
"dev": true,
"optional": true,
"dependencies": {
@ -593,9 +593,9 @@
}
},
"node_modules/chromium-bidi": {
"version": "0.4.31",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.31.tgz",
"integrity": "sha512-OtvEg2JMRQrHsmLx4FV3u1Hf9waYxB5PmL+yM0HkFpc9H2x3TMbUqS+GP2/fC4399hzOO+EQF8uVU43By9ILag==",
"version": "0.4.32",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.32.tgz",
"integrity": "sha512-RJnw0PW3sNdx1WclINVfVVx8JUH+tWTHZNpnEzlcM+Qgvf40dUH34U7gJq+cc/0LE+rbPxeT6ldqWrCbUf4jeg==",
"dev": true,
"dependencies": {
"mitt": "3.0.1",
@ -716,9 +716,9 @@
"dev": true
},
"node_modules/commander": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz",
"integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==",
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",
"integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",
"engines": {
"node": ">=16"
}
@ -859,9 +859,9 @@
}
},
"node_modules/devtools-protocol": {
"version": "0.0.1179426",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1179426.tgz",
"integrity": "sha512-KKC7IGwdOr7u9kTGgjUvGTov/z1s2H7oHi3zKCdR9eSDyCPia5CBi4aRhtp7d8uR7l0GS5UTDw3TjKGu5CqINg==",
"version": "0.0.1191157",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1191157.tgz",
"integrity": "sha512-Fu2mUhX7zkzLHMJZk5wQTiHdl1eJrhK0GypUoSzogUt51MmYEv/46pCz4PtGGFlr0f2ZyYDzzx5CPtbEkuvcTA==",
"dev": true
},
"node_modules/didyoumean": {
@ -1007,9 +1007,9 @@
"dev": true
},
"node_modules/fast-glob": {
"version": "3.2.12",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
"integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
"integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
"dependencies": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
@ -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"
@ -1406,9 +1406,9 @@
}
},
"node_modules/jiti": {
"version": "1.18.2",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz",
"integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==",
"version": "1.20.0",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz",
"integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==",
"bin": {
"jiti": "bin/jiti.js"
}
@ -2154,31 +2154,31 @@
}
},
"node_modules/puppeteer": {
"version": "21.3.8",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.3.8.tgz",
"integrity": "sha512-4OrInVIAtDgcznENUV4Du4gYSZhRmbCkckvOoPstXrUH4JsQ3atSegY+9f/tOKCDB2qh7sXaszDcFEn+RymY0g==",
"version": "21.4.1",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.4.1.tgz",
"integrity": "sha512-opJqQeYMjAB3ICG8lCF3wtSs9k05dozmrEMrHgo3ZWbISiy8qbv/yAJz/6Io221qSh3yURfVf6Z7crrlzKZjLQ==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"@puppeteer/browsers": "1.7.1",
"@puppeteer/browsers": "1.8.0",
"cosmiconfig": "8.3.6",
"puppeteer-core": "21.3.8"
"puppeteer-core": "21.4.1"
},
"engines": {
"node": ">=16.3.0"
}
},
"node_modules/puppeteer-core": {
"version": "21.3.8",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.3.8.tgz",
"integrity": "sha512-yv12E/+zZ7Lei5tJB4sUkSrsuqKibuYpYxLGbmtLUjjYIqGE5HKz9OUI2I/RFHEvF+pHi2bTbv5bWydeCGJ6Mw==",
"version": "21.4.1",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.4.1.tgz",
"integrity": "sha512-Lh0e+oGhUquxVOi1U701gTfFLFvw5gDBFh3CWpnfAvtItmyZKUce4R54VNfOJfi+KKnzhVPdB/lDrg65gdRIng==",
"dev": true,
"dependencies": {
"@puppeteer/browsers": "1.7.1",
"chromium-bidi": "0.4.31",
"@puppeteer/browsers": "1.8.0",
"chromium-bidi": "0.4.32",
"cross-fetch": "4.0.0",
"debug": "4.3.4",
"devtools-protocol": "0.0.1179426",
"devtools-protocol": "0.0.1191157",
"ws": "8.14.2"
},
"engines": {
@ -2651,19 +2651,19 @@
}
},
"node_modules/tailwindcss": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz",
"integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==",
"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",
"chokidar": "^3.5.3",
"didyoumean": "^1.2.2",
"dlv": "^1.1.3",
"fast-glob": "^3.2.12",
"fast-glob": "^3.3.0",
"glob-parent": "^6.0.2",
"is-glob": "^4.0.3",
"jiti": "^1.18.2",
"jiti": "^1.19.1",
"lilconfig": "^2.1.0",
"micromatch": "^4.0.5",
"normalize-path": "^3.0.0",
@ -3154,9 +3154,9 @@
}
},
"node_modules/yargs": {
"version": "17.7.1",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz",
"integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==",
"version": "17.7.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
"integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
"dev": true,
"dependencies": {
"cliui": "^8.0.1",

View file

@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.43.0",
"version": "2.44.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
@ -36,16 +36,16 @@
"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",
"prettier": "^3.0.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.6",
"puppeteer": "^21.3.8",
"puppeteer": "^21.4.1",
"rimraf": "^5.0.5",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.3.5",
"tw-elements": "1.0.0",
"typeit": "^8.7.1",
"vendor-copy": "^3.0.1"
@ -97,6 +97,6 @@
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@tailwindcss/forms": "^0.5.6",
"commander": "^11.0.0"
"commander": "^11.1.0"
}
}

Some files were not shown because too many files have changed in this diff Show more