Commit Graph

388 Commits

Author SHA1 Message Date
Nuno C.
a7080de207 Merge pull request #2352 from servedsmart/fix-article-shortcode-link
🚑 Hotfix: Fix incorrect href in article shortcode
2025-07-21 10:13:15 +01:00
Nuno C.
f9b4e1ef93 Merge pull request #2336 from ZhenShuo2021/fix/windows-author-image
🐛 Fix: author image does not support external URL on Windows
2025-07-21 10:07:51 +01:00
Nuno C.
0b7486049c Merge pull request #2333 from ZhenShuo2021/refactor/css
♻️ Refactor: significantly simplify main.css
2025-07-21 10:06:59 +01:00
Nuno C.
4285a740fa Merge pull request #2332 from ZhenShuo2021/fix/repo-color
🐛 Fix: repo card language color is missed
2025-07-21 10:05:23 +01:00
Nuno C.
48d925ad98 Merge pull request #2326 from ZhenShuo2021/fix/series-width
🐛 Fix: serise is too wide
2025-07-21 10:04:22 +01: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
ZhenShuo Leo
5009fffcf4 fix(repo-card): manually revert to the version in 2.87.0
The md5 method has severe performance degradation
It is approximately 2x slower without cache and 5x slower with cache

Reverted due to lack of a better option
2025-07-18 00:46:14 +08:00
ZhenShuo Leo
2ff6b0e8bd fix: repo card language color is missed 2025-07-18 00:44:28 +08:00
Nuno C.
c4753defd4 Merge pull request #2297 from ZhenShuo2021/feat/article-shortcode
 Feat: add options for article shortcode
2025-07-17 16:38:29 +01:00
ZhenShuo Leo
86e88935c7 fix: support external image for author image on windows 2025-07-15 13:41:50 +08:00
ZhenShuo Leo
8913a1c641 fix: series is too wide 2025-07-13 23:44:51 +08:00
ZhenShuo Leo
23e0416f51 refactor: modularize carousel and gallery css 2025-07-13 21:52:54 +08:00
ZhenShuo Leo
965c241f8c feat: add support for compactSummary option in article shortcode 2025-07-13 18:44:45 +08:00
ZhenShuo Leo
b4a7741b39 feat: add support for showSummary in article shortcode 2025-07-13 18:44:45 +08: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
ZhenShuo Leo
9e5a7f9d29 Revert "♻️ Refactor: Move inline styles containing background-image: out of line"
This reverts commit 1736cafcf4.
2025-07-11 09:09:43 +08:00
ZhenShuo Leo
8d05df18dc Revert "🐛 Fix: Typos and images not in css if optimized"
This reverts commit f82776c86b.
2025-07-11 09:09:43 +08:00
ZhenShuo Leo
95b62176cf Revert "🐛 Fix: Reassignment of variable names"
This reverts commit 80486364cd.
2025-07-11 09:09:43 +08:00
Nuno C.
94dfe274f3 Merge pull request #2272 from servedsmart/fix-issue-2264
🐛 Fix: Leading space in i18n go template
2025-07-10 11:40:57 +01:00
Nuno C.
3253e366b3 Merge pull request #2260 from servedsmart/use-pure-version-medium-zoom
🔒 Use pure version of medium-zoom to avoid inline style and simplify CSP usage
2025-07-10 11:40:05 +01:00
Nuno C.
5ebb8a9a63 Merge pull request #2261 from servedsmart/fix-label
🩹 Fix: Incorrect usage of <label> for menu-button
2025-07-10 11:39:23 +01:00
Nuno C.
6d94d1d62c Merge pull request #2269 from servedsmart/use-data-repo-colors-and-move-out-of-line
♻️ Refactor: Use universal json for repo shortcodes and move styles out of line
2025-07-10 11:37:41 +01:00
Nuno C.
0b3ba247b3 Merge pull request #2249 from servedsmart/improve-consistency-of-added-css-classes
♻️ Refactor: Autogen classes and use consistent naming (tailwindCSS)
2025-07-10 11:36:39 +01:00
Nuno C.
ecd40c85e7 Merge pull request #2245 from ZhenShuo2021/refactor/article-link
♻️ Refactor: make article-link formattable
2025-07-10 11:36:12 +01:00
Nuno C.
aec7af1f4e Merge pull request #2293 from servedsmart/fix-issue-2292
💄 Style: Fix overflow on some home layouts
2025-07-10 11:35:20 +01: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
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.
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.
83dcf2dfdc Merge pull request #2240 from ZhenShuo2021/style/format-head
🎨 Style(head): format head.html
2025-07-09 15:36:30 +01: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
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
ZhenShuo Leo
2886dea826 style(header): run prettier format 2025-06-19 19:44:08 +08:00
ZhenShuo Leo
6d941ee3d7 fix(header): incorrect end clause 2025-06-19 19:44:08 +08:00
ZhenShuo Leo
79171f488c refactor(header): modularize basic.html 2025-06-19 19:44:08 +08:00