Commit Graph
89 Commits
Author SHA1 Message Date
Friday efe0bcf9a8 feat: add llms.txt discovery link 2026-09-03 16:33:48 +01:00
ZhenShuo Leo 4b42f34de5 fix: katex rendering (#3062) 2026-08-22 09:06:16 +01:00
ZhenShuo2021 8334f00562 fix: JS broken in v3 (#3061)
* fix: zoom broken in v3 (#3060)

* fix: buymeacoffee broken in v3
2026-08-21 02:17:22 +01:00
Nuno CoraçãoandClaude Fable 5 09f0573749 ✨ v3 theme: glass UI, landing layout, a11y, perf, print styles
Floating glass header with ⌘K search, landing homepage layout with
hero image and GitHub-stars CTA, background canvas with dissolving
heroes, burufugu colour scheme, movie-quote 404, taxonomy pills,
keyboard/ARIA accessibility across menus, search and tabs, idle-
loaded third-party scripts, and dedicated print styles.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 20:19:02 +01:00
Friday 345f806d80 feat: add landing layout and harden rendering 2026-08-17 20:19:02 +01:00
Morten Victor Nordbye 1f82608cd6 Add reading progress bar for articles (#3014)
* Add reading progress bar for articles

* Let page-level showReadingProgress override the site setting

Hugo's default treats false as empty, so a page-level false could not
disable the bar once it was enabled site-wide. Resolve the value by
initialising from the site setting and overriding it only when the
front matter parameter is actually present, and use the same resolved
boolean in single.html and head.html.

* Guard the reading progress handler and mark the listener passive

The script loads in the head without defer, so the scroll listener is
registered before the progress bar element exists. A scroll event fired
during parsing, such as when the browser restores the scroll position on
reload, would throw. Bail out when the element is missing, matching the
guard in background-blur.js, and mark the scroll listener passive as
toc.html already does.
2026-08-16 22:14:45 +01:00
André Plöger 6b11b81aec Merge branch 'main' into feature/client-language-redirect 2026-05-14 10:23:48 -03:00
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 3a86a7656e ✨ Add opt-in client-side language redirect 2026-05-10 10:47:49 -03: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