Commit Graph

3531 Commits

Author SHA1 Message Date
Served Smart
65a50ff643 Only generate css classes for used repo colors
This in most cases will reduce the size of main.bundle.css dramatically. Before I had around ~+32kB, now it is ~+228B
2025-07-09 19:19:10 +02:00
Served Smart
cc2e90233a ♻️ Refactor: Use universal json and move styles out of line 2025-07-09 19:18:54 +02:00
Served Smart
17faf8b738 ♻️ Refactor: Autogen classes and use consistent naming
- This should greatly improve consistency
- This mainly targets one of my PRs https://github.com/nunocoracao/blowfish/pull/2211
2025-07-09 18:59:32 +02:00
Served Smart
48a2d64023 🔒 Use pure version of medium-zoom to avoid inline style
This avoids an extra sha sum for a hashed CSP because it merges the CSS into main.bundle.css and avoids any inline styles being applied by medium-zoom.

This addresses concerns mentioned in the closed PR https://github.com/nunocoracao/blowfish/pull/2196, now the same changes are integrated into package.json.

This fixes https://github.com/nunocoracao/blowfish/issues/2195.
2025-07-09 18:52:38 +02:00
Served Smart
82622d38d8 🩹 Fix: Incorrect usage of <label> for menu-button
This fixes the following issue in Chrome: No label associated with a form field.

I don't know why a <label> was used here before, but I see no reason to do so, a div works just as well.
2025-07-09 18:48:25 +02:00
Served Smart
61ad34afde 🐛 Fix: Leading space in i18n go template
This fixes: https://github.com/nunocoracao/blowfish/issues/2264
2025-07-09 18:39:08 +02:00
ZhenShuo Leo
2978995211 style(article-link): run prettier format 2025-07-09 23:43:26 +08:00
ZhenShuo Leo
35faec527b refactor(article-link): abstract anchor attributes for making article links formattable 2025-07-09 23:39:03 +08:00
Nuno C.
8d940881a4 Merge pull request #2278 from servedsmart/refactor-background-blur
♻️ Refactor: Use IIFE for background-blur and simplify code
2025-07-09 15:45:55 +01:00
Nuno C.
ebca0ffcc7 Merge pull request #2275 from ZhenShuo2021/refactor/gallery
♻️ Refactor(gallery): improve readibility
2025-07-09 15:44:44 +01:00
Nuno C.
b83889b72f Merge pull request #2268 from servedsmart/move-inline-style-background-image-out-of-line
♻️ Refactor: Move inline styles containing background-image: out of line
2025-07-09 15:43:04 +01:00
Nuno C.
0f83712a3d Merge pull request #2253 from servedsmart/move-some-inline-event-handlers-out-of-line
♻️ Refactor: Move 2 inline event handlers out of line
2025-07-09 15:42:33 +01:00
Nuno C.
dfd03ad722 Merge pull request #2254 from servedsmart/add-missing-resources-fingerprint
🎨 Structure: Restructure vendor.html and add missing hugo fingerprints
2025-07-09 15:39:30 +01:00
Nuno C.
4d200adfd3 Merge pull request #2257 from Weaxs/umami-bugfix
umami bugfix
2025-07-09 15:38:45 +01:00
Nuno C.
ece7b66be3 Merge pull request #2265 from nunocoracao/codex/review-code-and-suggest-improvements
🤖 Fix JS issues and modernize node scripts
2025-07-09 15:37:37 +01:00
Nuno C.
af55c359a7 Merge pull request #2304 from cEvolve05/dev
🐛 fix(docs): correct links of hugo doc
2025-07-09 15:37:13 +01:00
Nuno C.
83dcf2dfdc Merge pull request #2240 from ZhenShuo2021/style/format-head
🎨 Style(head): format head.html
2025-07-09 15:36:30 +01:00
Nuno C.
589f6997dd Merge pull request #2244 from ZhenShuo2021/style/header-formatting
🎨 Style(header): run prettier format
2025-07-09 15:35:08 +01:00
Nuno C.
0b3ee8daa5 Merge pull request #2243 from ZhenShuo2021/fix/header-end-clause
🐛 Fix(header): incorrect end clause
2025-07-09 15:34:59 +01:00
Nuno C.
8906801a94 Merge pull request #2242 from ZhenShuo2021/refactor/header-modularize
♻️ Refactor(header): modularize basic.html
2025-07-09 15:34:35 +01:00
Nuno Coração
171e64dd38 updated users 2025-07-09 15:31:41 +01:00
Nuno C.
88c5d03a68 Merge pull request #2241 from ZhenShuo2021/chore/social-image
🔧 Chore(config): use official banner as social image
2025-07-09 15:31:00 +01:00
Nuno C.
6de26cd2da Merge pull request #2291 from Menardi/tailwind-cli-docs
📝 Docs: Update Tailwind CLI docs for Tailwind v4
2025-07-09 15:30:29 +01:00
Nuno C.
39fe82f4b9 Merge pull request #2237 from Weaxs/dev
add Advertisement doc
2025-07-09 15:27:22 +01:00
Nuno C.
db602b14ea Merge pull request #2251 from anapaulagomes/fix-404-typo-in-pt-versions
Fix 404 typo in PT versions
2025-07-09 15:26:52 +01:00
Nuno C.
152fe82f1d Merge pull request #2301 from nunocoracao/dependabot/npm_and_yarn/dev/awmottaz/prettier-plugin-void-html-1.9.0
📌 bump @awmottaz/prettier-plugin-void-html from 1.8.0 to 1.9.0
2025-07-09 15:25:54 +01:00
Nuno C.
e0da6e87e5 Merge pull request #2303 from nunocoracao/dependabot/npm_and_yarn/dev/prettier-3.6.2
📌 bump prettier from 3.6.0 to 3.6.2
2025-07-09 15:25:45 +01:00
Nuno C.
e0d492c5b1 Merge pull request #2310 from nunocoracao/dependabot/npm_and_yarn/dev/puppeteer-24.12.0
📌 bump puppeteer from 24.10.2 to 24.12.0
2025-07-09 15:25:37 +01:00
dependabot[bot]
28a5b0b41f 📌 bump prettier from 3.6.0 to 3.6.2
Bumps [prettier](https://github.com/prettier/prettier) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.0...3.6.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 14:22:10 +00:00
dependabot[bot]
8e39564fa7 💄 Rebuild CSS 2025-07-09 14:21:58 +00:00
dependabot[bot]
d745426f41 📌 bump puppeteer from 24.10.2 to 24.12.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 24.10.2 to 24.12.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v24.10.2...puppeteer-v24.12.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-version: 24.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 14:21:51 +00:00
dependabot[bot]
e28a53dcdf 📌 bump @awmottaz/prettier-plugin-void-html from 1.8.0 to 1.9.0
Bumps [@awmottaz/prettier-plugin-void-html](https://github.com/awmottaz/prettier-plugin-void-html) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/awmottaz/prettier-plugin-void-html/releases)
- [Changelog](https://github.com/awmottaz/prettier-plugin-void-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/awmottaz/prettier-plugin-void-html/compare/v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: "@awmottaz/prettier-plugin-void-html"
  dependency-version: 1.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 14:21:34 +00:00
Nuno C.
16c7bf8de1 Merge pull request #2300 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss-4.1.11
📌 bump tailwindcss from 4.1.10 to 4.1.11
2025-07-09 15:20:33 +01:00
Nuno C.
13d42f44aa Merge pull request #2299 from nunocoracao/dependabot/npm_and_yarn/dev/tailwindcss/cli-4.1.11
📌 bump @tailwindcss/cli from 4.1.10 to 4.1.11
2025-07-09 15:20:20 +01:00
Nuno C.
993ffd0c05 Merge pull request #2294 from nunocoracao/hugo-new-version
⚙️ Update Hugo supported version
2025-07-09 15:19:07 +01:00
nunocoracao
20ff46b82f Update Hugo supported version 2025-07-09 06:07:15 +00:00
cEvolve05
37e6e621b5 🐛 fix(docs): correct links of hugo doc 2025-07-03 18:34:11 +08:00
dependabot[bot]
885d2ee040 📌 bump tailwindcss from 4.1.10 to 4.1.11
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.10 to 4.1.11.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.11/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 05:57:04 +00:00
dependabot[bot]
efb81ffdd5 📌 bump @tailwindcss/cli from 4.1.10 to 4.1.11
Bumps [@tailwindcss/cli](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-cli) from 4.1.10 to 4.1.11.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.11/packages/@tailwindcss-cli)

---
updated-dependencies:
- dependency-name: "@tailwindcss/cli"
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 05:56:57 +00:00
Served Smart
36261b13e7 💄 Use w-full on all homepage layouts
This fixes https://github.com/nunocoracao/blowfish/issues/2292 and avoids expanding in weird ways on larger screens.

It does make the section a larger on large screens. This however looks reasonable and should actually be an improvement.

For consistency I added w-full to layouts unaffected by https://github.com/nunocoracao/blowfish/issues/2292 too (page, card). Otherwise they look off.

page layout still has a bug where the fixed-width div expands the section too much on larger screens, but this behavior is the same as before. All layouts do not encounter https://github.com/nunocoracao/blowfish/issues/2292.
2025-06-30 16:27:25 +02:00
Served Smart
9f9bb7dcd8 💄 Style: Fix overflow on some home layouts
Fixed width elements were overflowing previously on:
background, hero and profile.

This addresses https://github.com/nunocoracao/blowfish/issues/2292

Currently the section element expands more than it used to
on larger screens, I will try to fix this.
2025-06-30 00:04:28 +02:00
Menardi
35458a6029 Update Tailwind CLI docs for Tailwind v4 2025-06-29 13:20:16 +01:00
ZhenShuo Leo
fafe7686b1 fix: minimum version warning not working 2025-06-28 22:30:38 +08:00
Served Smart
a34947a630 ♻️ Refactor: Move 2 inline event handlers out of line
If MDN explicitly warns user not to use them, we probably shouldn't.

MDN also states: "Note that inline event handlers are blocked as well[...]You should replace them with addEventListener calls[...]" regarding CSP.
2025-06-27 19:23:55 +02:00
Served Smart
7f8004e6af 🎨 Structure: Restructure vendor.html and add missing hugo fingerprints
This renames $youtubeLiteJS $youtubeLiteLib to match the naming of other files in assets/lib and moves the initialization of $youtubeLiteLib to the bottom, above the script element

This also adds 3 missing fingerprints, one to $packeryLib, one to $twelementsLib and one to $youtubeLiteCSS
2025-06-27 19:23:31 +02:00
Served Smart
ed7a36655b 🎨 Formatting: Actually use prettier-plugin-tailwindcss
I couldn't find any reason why this plugin is in package.json but not in .prettierrc. Also no issues/PRs etc.

Auto formatting with this hasn't been added or tested for accuracy yet (only for functionality), but I assume that if the plugin is in package.json, it should actually get used by prettier.
2025-06-27 19:22:41 +02:00
Served Smart
80486364cd 🐛 Fix: Reassignment of variable names
I'm not sure why this is such a big problem, but hugo doesn't seem to like this. It is also better to just use the intended way to reassign vars always.

Before, *feature* images if using background.html would always get overwritten, now that is fixed.
2025-06-27 19:21:59 +02:00
Served Smart
f82776c86b 🐛 Fix: Typos and images not in css if optimized 2025-06-27 19:21:58 +02:00
Served Smart
1736cafcf4 ♻️ Refactor: Move inline styles containing background-image: out of line
This greatly reduces the number of inline styles in the project and enhances maintainability by avoiding a lot of duplicate code.

This also reduces the number of hashes required for a CSP since all previous background-image inline styles are now in main.css.
2025-06-27 19:21:58 +02:00
Served Smart
1e9458802a ♻️ Refactor: Use IIFE for background-blur and simplify code
This improves readability and removes an unnecessary function declaration by using IIFE.

This is inspired by https://github.com/nunocoracao/blowfish/pull/2262 . If both are merged, this would enhance consistency
2025-06-27 19:19:28 +02:00