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.
150d336ace
Merge pull request #2289 from ZhenShuo2021/fix/render-link-EOF
...
🐛 Fix: render-link.html adding space after each link
2025-07-10 11:43:14 +01: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.
037c741ded
Merge pull request #2262 from ZhenShuo2021/refactor/repo-card
...
♻️ Refactor(repo-card): reduce coupling and indention
2025-07-10 11:37:27 +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.
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.
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
51b9cdfb13
fix: render-link.html adding space after each link ( #2287 )
2025-06-26 17:33:12 +08:00
ZhenShuo Leo
43857a5aa9
refactor(gallery): improve readibility
...
- remove unnecessary intermediate variable
- move the go process out of the div since they are not related
- use expressive variable names
- reorder declarations
2025-06-24 03:44:13 +08:00
ZhenShuo Leo
d39a64afe1
refactor(repo-card): use iife and async loading
2025-06-20 22:15:27 +08: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
ZhenShuo Leo
62e5fc2564
style: format head.html
2025-06-19 19:42:57 +08:00
ZhenShuo Leo
fda569cb8b
fix: make head.html formattable
2025-06-19 19:42:57 +08:00
ZhenShuo Leo
e9edfa8f1c
feat: support all types of sources for defaultSocialImage
2025-06-19 19:42:56 +08:00
Weaxs
49e463b726
add prettier-ignore annotation
2025-06-19 17:17:34 +08:00
Weaxs
495562826c
umami bugfix
2025-06-19 15:50:24 +08:00
Nuno Coração
f2e224a042
pretty run
2025-06-17 23:17:26 +01:00
Nuno Coração
560e927b87
Merge pull request #2210 from espressif/fix/add_default_figure_shortcode_as_partial
...
🐛 fix: add default figure shortcode as partial
2025-06-17 23:12:54 +01:00
Nuno Coração
03f9c7d732
Merge pull request #2224 from Weaxs/support-adsense
...
✨ support advertisement
2025-06-17 23:06:45 +01:00
Nuno Coração
472a89c7a5
Merge pull request #2211 from servedsmart/move-most-inline-styles-out-of-line
...
♻️ refactor: Move most inline styles out of line
2025-06-17 22:56:25 +01:00
Nuno Coração
3e52d26e30
Merge pull request #2216 from ZhenShuo2021/fix/showDate
...
🐛 Fix: date still shown when showDate=false
2025-06-17 22:49:46 +01:00