Commit Graph

3729 Commits

Author SHA1 Message Date
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
ZhenShuo2021
a0d04df2b3 Merge pull request #2549 from ZhenShuo2021/patch
chore: rebuild CSS for the new release v2.91.0
2025-10-15 00:28:28 +08:00
ZhenShuo Leo
de68f8d46e chore: rebuild CSS for the new release v2.91.0 2025-10-15 00:26:29 +08:00
Nuno Coração
2e3fb57ce8 v2.92.0 2025-10-14 10:30:56 +01:00
Nuno Coração
43dcc375d6 small fixes 2025-10-14 10:21:43 +01:00
Nuno C.
8db2442743 Merge pull request #2541 from nunocoracao/main
Sync
2025-10-14 10:16:29 +01:00
Nuno C.
452bdd408b Merge branch 'dev' into main 2025-10-14 10:16:20 +01:00
Nuno C.
80746a1fce Merge pull request #2515 from ZhenShuo2021/feat/image-position
 Feat: add `imagePosition` to allow align image
2025-10-14 10:14:27 +01:00
Nuno C.
b29c6614dc Merge branch 'dev' into feat/image-position 2025-10-14 10:14:18 +01:00
Nuno C.
1597b4b356 Merge pull request #2525 from nunocoracao/dependabot/npm_and_yarn/tar-fs-3.1.1
chore(deps-dev): bump tar-fs from 3.1.0 to 3.1.1
2025-10-14 10:11:42 +01:00
Nuno C.
6e5a0769d3 Merge pull request #2539 from Flexicon/fix-heading-anchor-colour-flicker
🐛 Fix(render-heading): prevent colour flicker on anchor links
2025-10-14 10:11:19 +01:00
Nuno C.
f441e653fb Merge pull request #2538 from thetorminal/patch-2
relLangUrl in $showMoreLinkDest
2025-10-14 10:10:48 +01:00
Nuno C.
ad5295d335 Merge pull request #2537 from tveyben/add-danish
Adds danish translation
2025-10-14 10:10:07 +01:00
Nuno C.
edab149fca Merge pull request #2536 from ZhenShuo2021/chore/contributing
🔧 Chore: CONTRIBUTING.md
2025-10-14 10:09:39 +01:00
Nuno C.
fcd9b6cc89 Merge pull request #2535 from ZhenShuo2021/docs/patches
📝 Docs: small patches
2025-10-14 10:09:19 +01:00
Nuno C.
01dafef575 Merge pull request #2533 from ZhenShuo2021/feat/mermaid-dark
 Feat(mermaid): support dark mode
2025-10-14 10:08:26 +01:00
Nuno C.
7f4e044464 Merge pull request #2532 from ZhenShuo2021/fix/render-image
🐛 Fix(render-image): correct srcset and HTML structure
2025-10-14 10:07:52 +01:00
Nuno C.
7094f95a27 Merge pull request #2531 from ghlrobin/patch-1
Update Firebase CLI installation command
2025-10-14 10:07:10 +01:00
Nuno C.
cc7989614a Merge pull request #2520 from Sunrongguo2008/patch-1
Update index.zh-cn.md
2025-10-14 10:06:03 +01:00
Nuno C.
f2fd7a35cc Merge pull request #2519 from Sunrongguo2008/main
Update index.zh-cn.md
2025-10-14 10:05:34 +01:00
Nuno C.
9b6ed820e9 Merge pull request #2509 from ZhenShuo2021/fix/terms-typo
🐛 Fix: multiple small patches
2025-10-14 09:55:46 +01:00
Nuno C.
1a86ce0bd7 Merge pull request #2507 from tekdahl/carousel-aspectratio
Carousel support any aspect ratio
2025-10-14 09:53:15 +01:00
Nuno C.
ce18bf1134 Merge pull request #2505 from ZhenShuo2021/feat/hotlink
 Feat: support `hotlinkFeatureImage`
2025-10-14 09:50:21 +01:00
Nuno C.
719e505d01 Update layouts/partials/article-link/_shortcode.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:50:02 +01:00
Nuno C.
cac66e0fd7 Update layouts/partials/article-link/card-related.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:49:50 +01:00
Nuno C.
fba28d5274 Update layouts/partials/article-link/card.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:49:38 +01:00
Nuno C.
c714e91685 Update layouts/partials/article-link/simple.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:49:29 +01:00
Nuno C.
831af00253 Update layouts/partials/hero/background.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:49:15 +01:00
Nuno C.
f153250887 Update layouts/partials/hero/basic.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:48:58 +01:00
Nuno C.
eef77a4a80 Update layouts/partials/hero/thumbAndBackground.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:48:32 +01:00
Nuno C.
2e4e97c5b8 Update layouts/partials/hero/thumbAndBackground.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-14 09:48:02 +01:00
Nuno C.
b91653687b Merge pull request #2499 from quasialex/main
Update head.html
2025-10-14 09:46:26 +01:00
Mike Repec
b4a13da6d8 🐛 Fix(render-heading): prevent colour flicker on anchor links
The group-hover prefix is redundant and cause the colour to flicker
for the anchor link tag - the colour should actually stay the same
and only have it's opacity (visibility really) controlled via group-hover.
2025-10-13 09:18:45 +02:00
torminal
9c5ecfb45b relLangUrl in $showMoreLinkDest
Currently, the show more button doesnt support multilingual websites. Fixed with "| relLangURL"
2025-10-11 14:43:42 +02:00
TvE
4a19b81bd5 Adds danish translation 2025-10-11 11:19:49 +02:00
ZhenShuo Leo
faeb1e1dea chore: move dev branch description to the front 2025-10-11 15:41:27 +08:00
ZhenShuo Leo
925065a5bd feat(mermaid): support dark mode 2025-10-11 15:24:21 +08:00
ZhenShuo Leo
792ec9a601 refactor(render-image): see detail
- trim white spaces which can't be eliminated by minify
- unify dict input usages
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
8bfa9926c7 fix(render-image): improper srcset usage
- correct srcset image w descriptor value
- use compressed image for src fallback
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
90e553541e fix: enable wrapStandAloneImageWithinParagraph by default
This fixes invalid HTML where figure tag is inside p tag.
However, this does not fix linked images, e.g., `[![alt](image)](url)`.
The cleanest way to resolve linked images is using markdown-attributes,
but markdown-attributes is not recommended by CommonMark.

See:

- https://discourse.gohugo.io/t/how-to-do-wrap-img-with-a-inside-figure-with-render-image-html/44843
- https://github.com/gohugoio/hugo/blob/master/markup/goldmark/images/transform.go
- https://gohugo.io/content-management/markdown-attributes/
- https://github.com/commonmark/commonmark-spec/wiki/Deployed-Extensions#attributes
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
a19edf471b chore(header): correct template naming 2025-10-11 03:11:00 +08:00
ZhenShuo Leo
40eea78d8c chore(footer): use logical properties 2025-10-11 03:10:00 +08:00
ZhenShuo Leo
4550723e94 fix: carousel CSS build path (#1545) 2025-10-11 15:19:36 +08:00
ZhenShuo Leo
c9c8a36c16 fix: article-pagination
- simplify html
- fix rtl item alignment
- fix empty span tag when showDate is false
- align hover effect with other element, removes group hover underline
2025-10-11 15:19:36 +08:00
ZhenShuo Leo
6c8e0d7933 fix(header): add aria-label for icons 2025-10-11 15:19:36 +08:00
ZhenShuo Leo
9a043d83ab fix(single.html): toc not controlled by frontmatter (redo #2428) 2025-10-11 15:19:36 +08:00
ZhenShuo Leo
9b35cc2bae fix(toc): too wide when no related contents 2025-10-11 15:19:36 +08:00
ZhenShuo Leo
d8ea1d81b5 fix: article shortcode padding 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
751856fcc2 fix: show full size author image when zooming 2025-10-11 15:19:35 +08:00
ZhenShuo Leo
ba45e11207 fix: repo card css output path conflict 2025-10-11 15:19:35 +08:00