Commit Graph
30 Commits
Author SHA1 Message Date
Served Smart fef2b64ca9 🩹 Do not underline title if hovering taxonomies 2025-07-21 12:30:36 +02:00
Served Smart 8d9c93e7b8 🚑 Hotfix: Fix title not being hoverable 2025-07-21 12:24:31 +02:00
Served Smart 4d1d3c5311 🚑 Hotfix: Fix issues with article shortcode 2025-07-21 12:24:06 +02:00
Served Smart 5b84d57817 🚑 Hotfix: Fix incorrect href in article shortcode
See: https://github.com/nunocoracao/blowfish/pull/2297#issuecomment-3085165961
2025-07-17 21:51:07 +02:00
Served Smart b73c64f4f5 🎨 Reformat article-meta/basic.html 2025-07-11 17:05:34 +02:00
Served Smart 5e8561d83b 🚸 UX: Use anchor tags in article-meta/basic.html
- This removes an inline event handler
- This also adds an aria-label

Using javascript instead of just using <a></a> is bad practice regarding accessibility and automated processing of web pages. Even the browser doesn't show a hint if hovering badges when using the old implementation. This in my opinion is a good way to replace inline event handlers in that code.
2025-07-11 17:03:35 +02:00
Served Smart 25977d8115 ♻️ Refactor: Move function to functions/ and rename variable 2025-07-09 19:19:10 +02:00
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
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
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
Served Smart cee01113cd 🐛 Fix: null error when no [[menu]] block is defined
- This fixes https://github.com/nunocoracao/blowfish/issues/2117
- Additionally this also removes unnecessary parameters in used functions
2025-06-16 19:59:48 +02:00
Served Smart d97b1e5c38 ➖ Remove tailwindcss v4.1.7 from package-lock.json 2025-06-12 14:33:04 +02:00
Served Smart de49717700 💄 Rebuild CSS for refactoring changes 2025-06-12 14:32:06 +02:00
Served Smart 9f85c0566e ♻️ refactor: Move most inline styles out of line
- Move out of line by using already defined css classes
- Move paddings out of line
- Move margins out of line
- Move z-indexes out of line
- Move center-relative-left out of line
2025-06-12 14:00:21 +02:00
Served Smart 9cb0db3e08 🎨 structure: Use more explicit naming in setBackgroundBlur() 2025-06-12 13:58:59 +02:00
Served Smart 4ff3d07d30 🎨 structure: Use more explicit naming in fetchRepo() 2025-06-12 13:58:59 +02:00
Served Smart 37ab1055e7 ♻️ refactor: Move similar javascript inline code out of line
- Move variables oid, oid_likes out of line
- Move background-blur out of line
- Move fetch-repo code out of line
2025-06-12 13:58:59 +02:00
Served Smart dc36597427 🔒 Add config parameter fingerprintAlgorithm
This parameter allows users to choose their algorithm for html integrity checks. This mainly affects Hugo's fingerprint
2025-06-03 11:53:03 +02:00