30 Commits

Author SHA1 Message Date
ZhenShuo Leo
20044af981 feat: add tabs 2025-12-01 20:24:26 +08:00
ZhenShuo Leo
884d84363e Revert "perf(repo-card): only generate used CSS class"
This reverts commit af221fbf3b.

fix language dot colors in repo-card not displaying

This occurs because head.html is rendered before the page content,
making .Page.Store unavailable at that point in the template
execution order.

This issue doesn't appear in local development because page refreshes
trigger full re-renders, allowing the Store values to be properly
populated from shortcodes.

Alternative solutions considered:

1. templates.Defer: too complex and unreliable
2. Moving CSS to footer: confusing and delayed load
3. Inline styles: incurs CSP issue

Final I choose pre-generate CSS for all languages. After zstd
compression, the CSS file is only 8KB and benefits from browser
caching across all pages.
2025-10-17 14:38:24 +08:00
ZhenShuo Leo
ba45e11207 fix: repo card css output path conflict 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
af221fbf3b perf(repo-card): only generate used CSS class 2025-09-12 11:13:23 +08:00
ZhenShuo Leo
f94f60aef6 perf(repo-card): load CSS once globally instead of per card 2025-09-12 10:31:28 +08:00
ZhenShuo Leo
23e0416f51 refactor: modularize carousel and gallery css 2025-07-13 21:52:54 +08: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
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
Nuno Coração
f2e224a042 pretty run 2025-06-17 23:17:26 +01: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
W.T. Chang
8220a922a8 add hash to typeit 2024-07-25 00:06:02 +08:00
W.T. Chang
4fec5ab532 add hash to youtube lite 2024-07-24 23:27:11 +08:00
W.T. Chang
4a384379cf add hash for jquery 2024-07-24 23:20:57 +08:00
Nuno Coração
e17c4b6dd6 initial commit for improvements 2024-03-10 10:55:57 +00:00
Nuno Coração
f0f6afa555 Revert "Gallery: Switch Packery to MagicGrid " 2024-03-09 14:28:04 +00:00
Nuno Coração
f93ac47d88 Merge branch 'dev' into gallery-magic-grid 2024-03-09 14:23:45 +00:00
Alex Haslam
5a11829222 Add mermaid back in package.json 2024-03-07 20:32:21 +00:00
StandingPad Animations
f1d582ff98 Swapped out Packery for MagicGrid
This switches the Gallery shortcode to use MagicGrid instead of Packery.
The main benefit is size (2.7k as opposed to 32k), and the results are
mostly similar minus a few differences in image position.
2024-03-06 20:12:28 -06:00
v20100v
c790396863 🐛 : Shortcodes gallery (non-unique id, multiple loading <script> tag) 2023-12-18 14:37:47 +01:00
Nuno Coração
7e41c9cac0 final polish 2023-03-02 22:36:00 +00:00
Nuno Coração
7740790c28 updated hugo version 2023-03-02 22:28:51 +00:00
Nuno Coração
10d9a140b9 Add timeline shortcode 2023-01-24 23:53:01 +00:00
Nuno Coração
f4222b83a2 rewrote carousel 2023-01-17 22:36:56 +00:00
Nuno Coração
05f76ed459 fixed dependencies and css, update gallery code 2023-01-17 00:31:25 +00:00
Nuno Coração
62dbfc51c5 Progress Indicator in TOC 2023-01-14 23:05:10 +00:00
Nuno Coração
ae5e154235 🐛 removed unexistent onload call 2023-01-14 02:19:32 +00:00
Nuno Coração
2c1d12584b 🐛 fixed typeit integration 2023-01-08 21:44:15 +00:00
Nuno Coração
09a5be7077 TypeIt integration 2022-12-31 14:51:04 +00:00
Nuno Coração
8fbdecb6e7 initial commit 2022-09-10 20:05:37 +01:00