81 Commits

Author SHA1 Message Date
Nuno C. c4607f0a8f Merge pull request #2926 from aplgr/fix/meta-description-order
Add configurable meta description fallback order
2026-05-13 23:07:44 +01:00
Nuno C. b7d5f96bea Merge branch 'main' into dependabot/npm_and_yarn/main/fuse.js-7.3.0 2026-05-13 23:00:15 +01:00
Nuno Coração 5e144d4f11 fixed incompatibilitis in extension change 2026-05-13 22:49:17 +01:00
André Plöger ab5c7b7c97 Add configurable meta description fallback order 2026-04-29 20:40:29 -03:00
Robert Randall 350458a3c5 Changed from deprecated .Site.LanguageCode to .Site.Language.Locale 2026-04-29 13:32:56 +02:00
Nuno C. 44f787680b Merge pull request #2874 from aplgr/feat/hreflang-head-alternates
Add hreflang alternates to multilingual page head
2026-04-13 22:43:11 +01:00
Nuno C. a57db858b4 Merge pull request #2866 from EricGusmao/fix/hugo-v0.158.0-deprecations
fix: migrate deprecated Hugo v0.158.0 language API
2026-04-13 22:40:39 +01:00
André Plöger 7ea30cb4f1 Add hreflang alternates to multilingual page head 2026-03-28 14:59:53 -03:00
Eric Gusmao 7c127074f9 fix: migrate deprecated Hugo v0.158.0 language API
Replace deprecated config keys and template methods per Hugo v0.158.0:

Config (10 files):
- languageCode → locale
- languageName → label

Templates:
- site.LanguageCode → site.Language.Locale (baseof.html, head.html, schema.html x2)
- site.Language.Lang → site.Language.Name (single.html)
- .Lang → .Language.Name (likes.html, views.html)

Ref: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869
2026-03-25 11:15:20 -03:00
Nick Kocharhook 79a78bcef4 [#2850] Run plainify on the title value before emojify 2026-03-22 23:08:36 +00:00
ZhenShuo Leo 55f2f22849 feat: email obfuscation (#2711) 2026-02-25 23:13:16 +08:00
ZhenShuo Leo 99d329c7b0 feat: reduce firebase blocking time
- use esm format
- defer loading with type="module"
- upgrade from v8.10.0 to v9.23.0
- allow homepage/taxonomy/term log
2026-02-10 06:52:05 +08:00
ZhenShuo Leo 0e9a151ce5 refactor: gather firebase templates 2026-02-07 21:48:53 +08:00
ZhenShuo Leo 8ab8807398 feat: better mobile menu 2025-12-27 17:32:00 +08:00
ZhenShuo Leo 81f2423d71 Merge branch 'dev' into feature/callout-tailwind 2025-12-23 01:21:40 +08:00
ZhenShuo Leo 34fc0e619f chore(head): normalize color scheme name to lowercase
Many users configured the scheme with uppercase letters.

While uppercase works on macOS, it causes deployment failures on Ubuntu due to case sensitivity.
2025-12-23 01:13:55 +08:00
rxchi1d 775d5b1bbf feat: add admonitions 2025-12-22 09:53:58 +08:00
Nuno C. b91653687b Merge pull request #2499 from quasialex/main
Update head.html
2025-10-14 09:46:26 +01:00
ZhenShuo Leo 8b41f89455 fix(head): only load analytics when IsProduction 2025-10-01 17:00:58 +08:00
ZhenShuo Leo 374a0f51f7 fix(head): social image meta duplication 2025-10-01 17:00:58 +08:00
ZhenShuo Leo b3bc04cfc3 refactor(head): move meta to the front 2025-10-01 17:00:58 +08:00
ZhenShuo Leo 7b694613da refactor(head): remove unnecessary space trim 2025-10-01 17:00:58 +08:00
ZhenShuo Leo 2c9f1af5b2 refactor(head): remove unnecessary newScratch 2025-10-01 13:36:11 +08:00
quasialex 98f5b2c3b4 Update head.html
Correction: firebaseConfig authDomain
2025-09-23 20:28:50 +03:00
ZhenShuo Leo b777d4e59e fix(scroll-to-top): resolve overlap with buy me a coffee button 2025-09-23 17:57:58 +08:00
ZhenShuo Leo a070040538 fix(a11y): zen mode not working when showZenMode is false
load zen-mode.js in head.html for clarity
2025-08-05 18:36:24 +08:00
Nuno C. 417f6ef42c Merge pull request #2395 from Weaxs/main
Support google adsense
2025-08-03 01:47:37 +01:00
Weaxs 848ac6b17b ADD adsbygoogle.js IN head.html 2025-08-02 20:31:42 +08:00
ZhenShuo Leo 26637ee585 refactor: decoupling a11y and blur 2025-07-22 00:43:14 +08: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. 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
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 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
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
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 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 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
Nuno Coração 03f9c7d732 Merge pull request #2224 from Weaxs/support-adsense
 support advertisement
2025-06-17 23:06:45 +01:00
Weaxs 52b47665c8 support advertisement 2025-06-16 16:18:51 +08: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
Nuno Coração 5fc28a1ffd Merge pull request #2116 from ZhenShuo2021/feat/extend-head
 Feat: support extend-head access .Page (#1781)
2025-05-27 00:24:57 +01:00
ZhenShuo Leo 73cbdae595 Feat: support extend-head access .Page (#1781)
Use extend-head-uncached.html for downward compatibility
2025-05-06 23:55:47 +08:00