Commit graph

6 commits

Author SHA1 Message Date
Tolaria
c7a3fe9412 feat(action-points): add zensical.toml kill switch + perf + legibility
Feature flag:
- [project.extra.action_points] enabled (default true) in zensical.toml.
- overrides/main.html exposes it as window.TOA_ACTION_POINTS_ENABLED in
  <head>, before extra_javascript loads.
- extra.js bails at the top of the IIFE when the flag is false: no
  storage, no nav badges, no heading pills, no confetti, no per-click
  work. Checkboxes fall back to Material's read-only tasklist.
  Verified inert when disabled (0 badges/pills/canvases, no localStorage,
  no JS errors).

Perf:
- In-memory write-through cache for the parsed store: a single toggle
  went from 15 localStorage JSON.parse reads to 0.
- updateNavBadges() updates badges in place (reuse span, only write on
  change) instead of removing+rebuilding every badge each toggle, which
  forced a full Material nav relayout. JS/toggle ~0.37->0.26ms,
  layout delta ~0.73->0.63ms.

Legibility:
- Override -webkit-text-fill-color (headings set it; pseudo-elements
  inherit it and it beats `color`) to #fff on completed green pills and
  nav badges, so the count/checkmark is white on green. h2 text color
  itself untouched.
2026-06-03 23:46:14 +08:00
Tolaria
7d58c330a6 update comments plugin
All checks were successful
Deploy Docs / deploy (push) Successful in 23s
2026-06-03 18:52:11 +08:00
Tolaria
2537e4d5af fix: switch Cusdis to iframe embed to avoid CORS
All checks were successful
Deploy Docs / deploy (push) Successful in 24s
- Replace <script src> approach with programmatic iframe creation
- No cross-origin script loading — avoids CORS blocks entirely
- Guard against missing container with null check
2026-06-03 18:40:04 +08:00
Tolaria
9bc2a55251 merge: images-work — hero images, footer polish, caption overlays 2026-06-03 18:12:06 +08:00
Tolaria
b1e129ed6e chore: add Cusdis comments, clean up build artifacts
- Add Cusdis comment integration (zensical.toml + overrides partial)
- Add comments:true to homepage frontmatter
- Gitignore codedb.snapshot and old root build artifacts
- Remove tracked old build files (site/ is the new build output)
2026-06-03 18:12:01 +08:00
Tolaria
12494bf0f0 feat: full-width images, Grebedoc badge, footer polish
- Make hero and infographic images full-width with minimal caption area
- Remove frosted glass card chrome from image figures (cleaner look)
- Add Grebedoc 88x31 banner to footer next to Zensical link
- Change 'Made with' to 'Built with Zensical'
- Right-align image captions, reduce font size for subtlety
- Add footer badge flex layout CSS
2026-06-03 17:06:41 +08:00