ZhenShuo Leo
340364f31a
feat(article-link): use semantic HTML
2025-09-16 15:08:36 +08:00
ZhenShuo Leo
5bab41062a
refactor(article-link): remove unnecessary with syntax
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
b1b7aa1f42
feat(article-link): reimplement card hover using ::before method
...
The previous method was not intuitive since there was nothing in the <a> tag,
and required group-xxx classes for every element.
The new pseudo element method fixes those problems, see:
https://kittygiraudel.com/2022/04/02/accessible-cards/
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
8911ac843a
chore(term-link): remove unused .Params.images
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
cb479d5693
feat(hero): support internal links for featureimage
...
This commit also gives the `featureimage` frontmatter the highest priority, preventing it from being overridden by hidden logic.
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
9c1d56e0e7
feat(article-link): support internal links for featureimage
...
This commit also gives the `featureimage` frontmatter the highest priority, preventing it from being overridden by hidden logic.
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
6d6b5d3946
fix(article-link): skip fetching images when hideFeatureImage is true
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
ff3a6b4253
fix(article-link): explicitly set featured priority
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
0f7f27b916
refactor(article-link): separate Go templates from HTML rendering
...
Add descriptions for the purpose of each template.
It takes time to figure out their use every time.
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
c8ee5fc657
refactor(article-link): unify featured image rendering with MediaType check
2025-09-16 15:08:35 +08:00
ZhenShuo Leo
e3194eca1e
chore(article-link): remove unused .Params.images
...
The `.Params.images` and `.Site.Params.images` have existed since the creation of the files
but have never been referenced in the documentation since their initial commit (3cc1569fc1 )
Also, Meta tags are not valid inside card elements
2025-09-16 15:08:22 +08:00
Nuno C.
488be56b5f
Merge pull request #2466 from ZhenShuo2021/feat/repo-card-csp
...
✨ Feat(repo-card): remove inline style
2025-09-15 23:08:42 +01:00
Nuno C.
53eff2b690
Merge pull request #2465 from ZhenShuo2021/feat/timeline-md
...
✨ Feat(timeline): support markdown content
2025-09-15 23:08:24 +01:00
Nuno C.
c14887e992
Merge pull request #2456 from ZhenShuo2021/fix/a11y
...
🐛 Fix(a11y): multiple a11y issues
2025-09-15 23:04:54 +01:00
Nuno C.
64aed3c6e7
Merge pull request #2403 from ZhenShuo2021/fix/figure-link-area
...
🐛 Fix(figure): limit link hover area to image only
2025-09-15 23:03:33 +01:00
Nuno C.
ecd990b5e5
Merge pull request #2397 from ZhenShuo2021/chore/prune-tailwind-classes
...
🔧 Chore: prune unused Tailwind classes
2025-09-15 23:02:30 +01:00
Nuno C.
295ce738be
Merge pull request #2393 from ZhenShuo2021/fix/rtl-layout-issues
...
🐛 Fix(rtl): multiple layout issues
2025-09-15 23:02:11 +01:00
Nuno C.
ed6fb66bbe
Merge pull request #2391 from ZhenShuo2021/refactor/logical-properties
...
♻️ Refactor(CSS): use logical properties for language direction
2025-09-15 23:01:41 +01:00
ZhenShuo Leo
e355715a3b
feat(timeline): support markdown content
2025-09-12 20:25: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
2ff90348e7
feat(repo-card): fix inline style CSP issue
2025-09-10 07:27:47 +08:00
ZhenShuo Leo
539a776d1c
chore(a11y): add title to i18n
2025-09-01 02:19:30 +08:00
ZhenShuo Leo
4bb67ca1ca
chore: remove text-white
2025-08-22 04:03:22 +08:00
ZhenShuo Leo
97b5a3acdd
chore: remove from-gray-100
2025-08-22 04:03:22 +08:00
ZhenShuo Leo
76aa3741d1
chore: remove text-gray
2025-08-22 04:03:22 +08:00
ZhenShuo Leo
814df64d92
chore: remove bg-gray-100
2025-08-22 04:03:22 +08:00
ZhenShuo Leo
aa76e94538
fix(rtl): correct article-link title direction ( #2023 )
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
58b7a6be39
style(toc): add padding to the end
...
This improves appearance in chrome and safari
and fixes content being blocked in firefox
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
2efd19e793
fix(rtl): homepage card layout broken on rtl site
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
41f6b37e56
refactor(tailwind): use logical properties for language direction
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
3150fb6631
fix(rtl): timeline shortcode broken on rtl site
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
637c43a125
fix(rtl): cardViewScreenWidth broken on rtl site
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
b005096833
fix(rtl): incorrect article-link badge padding
2025-08-22 03:34:02 +08:00
Rodolphe Bréard
a3b6dfacd5
Add a title on author links
2025-08-06 17:03:08 +02:00
ZhenShuo Leo
4b9062f4c1
style(blur): rename data-target-id to data-blur-id
2025-08-05 18:36:25 +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
ZhenShuo Leo
ade00547b3
fix(a11y): disableImages not working when layoutBackgroundBlur is false
2025-08-05 18:23:16 +08:00
ZhenShuo Leo
571b875f4a
fix(figure): limit link hover area to image only
2025-08-03 19:17:12 +08:00
Nuno C.
e87d4f59bb
Merge pull request #2398 from ZhenShuo2021/fix/repo-card-dollar
...
🐛 Fix(repo-card): add missing dollar sign
2025-08-03 01:49:16 +01:00
Nuno C.
417f6ef42c
Merge pull request #2395 from Weaxs/main
...
Support google adsense
2025-08-03 01:47:37 +01:00
Nuno C.
7fe13cbe14
Merge pull request #2389 from ZhenShuo2021/style/menu-active
...
💄 Style(header): nested desktop menu not highlighted
2025-08-03 01:45:00 +01:00
Nuno C.
9e6ffcc676
Merge pull request #2384 from ZhenShuo2021/style/footer-icon
...
💄 Style(footer): improve icon-only mobile menu
2025-08-03 01:44:53 +01:00
Nuno C.
a3dd43e992
Merge pull request #2378 from ZhenShuo2021/feat/huggingface-card
...
✨ Feat: add huggingface shortcode
2025-08-03 01:44:17 +01:00
Nuno C.
73119cddbe
Merge pull request #2374 from ZhenShuo2021/fix/carousel-transition
...
🐛 Fix(carousel): transition time not controlled by interval
2025-08-03 01:41:10 +01:00
Nuno C.
12de0ffd88
Merge pull request #2373 from ZhenShuo2021/fix/carousel-interval
...
🐛 Fix(carousel): interval not working
2025-08-03 01:40:33 +01:00
Nuno C.
c852d9293c
Merge pull request #2372 from ZhenShuo2021/fix/icon-newline
...
🐛 Fix(icon): trim white space and line break
2025-08-03 01:40:15 +01:00
Nuno C.
47ad966c42
Merge pull request #2366 from ZhenShuo2021/feat/a11y-panel-zen
...
✨ Feat: add zen mode toggle in a11y panel
2025-08-03 01:39:19 +01:00
Nuno C.
e0052eb58c
Merge pull request #2365 from ZhenShuo2021/feat/a11y-panel
...
✨ Feat: add setting panel for a11y
2025-08-03 01:37:56 +01:00
Nuno C.
4eb9d037e4
Merge pull request #2362 from ZhenShuo2021/feat/a11y-toggle
...
✨ Feat: support a11y toggle button
2025-08-03 01:37:40 +01:00