Commit Graph
72 Commits
Author SHA1 Message Date
ZhenShuo Leo df4b71be84 fix: performance regression introduced in v3
replace backdrop-blur with monochromatic background color
2026-09-13 22:13:36 +01:00
ZhenShuo Leo 9f8972fecf fix: medium-zoom conflict with featureImageHover 2026-08-22 09:06:46 +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 bbf194ce31 feat: share translated feature images and animate landing 2026-08-17 20:19:02 +01:00
Friday af0e11171c feat: improve feature image presentation 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
ZhenShuo Leo c164484993 fix: global resources fallback incorrectly removed in #2978 2026-07-05 14:37:14 +08:00
ZhenShuo Leo 4a45ab6c96 fix: scope of featureimage in front matter
fixes #2977
2026-06-13 14:43:50 +08:00
jin-li a308a86365 feat: global thumbnail aspect ratio configuration
- Add thumbnailAspectRatio site parameter (default '1.5')
- Use decimal values instead of fractions for Hugo compatibility
- Sanitize user input to extract only numeric characters
- Apply to article cards, related cards, and term cards
- Update both source and compiled CSS

Closes #2839
2026-03-29 14:27:09 +02:00
ZhenShuo Leo 10083786cb style(card-link): add line clamp and BEM classes
Add BEM class names for easier CSS targeting
2026-01-07 16:06:56 +08:00
ZhenShuo Leo e4ca3de291 feat(article-link): support front matter control of showCards option 2025-12-23 01:16:00 +08:00
ZhenShuo Leo 112b22c0d9 style: improve article-link contrast
add background and tweak border
2025-11-29 04:10:47 +08:00
ZhenShuo Leo ec942b013a fix: remove alt in decorative images 2025-11-29 03:29:18 +08:00
Ted 1ef3c02588 fix _external-link.html replacement variable refs 2025-10-15 09:35:42 -05:00
Nuno Coração 43dcc375d6 small fixes 2025-10-14 10:21:43 +01:00
Nuno C. b29c6614dc Merge branch 'dev' into feat/image-position 2025-10-14 10:14:18 +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.andCopilot 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.andCopilot 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.andCopilot 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.andCopilot 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
ZhenShuo Leo d8ea1d81b5 fix: article shortcode padding 2025-10-11 15:19:35 +08:00
ZhenShuo Leo 3918571644 chore(article-link): use old naming of css class name
though the new thumbnail--xxx naming is cleaner
but this kind of change should be postponed until a major release
2025-10-08 13:15:31 +08:00
ZhenShuo Leo a27d65ad36 fix(article-link): replace figure tag to div
this is not needed for decorative images
2025-10-08 13:06:24 +08:00
ZhenShuo Leo 22f097f92a chore: hotlinkFeatureImages -> hotlinkFeatureImage 2025-09-27 09:12:58 +08:00
ZhenShuo Leo 9eebb5b2aa fix: img attribute
add loading/decoding/fetchpriority

remove alt for decorative images
2025-09-26 22:37:56 +08:00
ZhenShuo Leo 4b9e63fd99 feat(article-link): add support for hotlinkFeatureImages 2025-09-26 22:06:53 +08:00
ZhenShuo Leo 7cb8dcc4a1 chore(article-link): remove _external-link.html
we don't need this anymore
2025-09-23 23:02:17 +08:00
ZhenShuo Leo 01b998e070 feat(article-link): replace background div with img tag 2025-09-16 15:08:36 +08:00
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 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
ZhenShuo Leo aa76e94538 fix(rtl): correct article-link title direction (#2023) 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
Served Smart fef2b64ca9 🩹 Do not underline title if hovering taxonomies 2025-07-21 12:30:36 +02:00
Served Smart 8d9c93e7b8 🚑 Hotfix: Fix title not being hoverable 2025-07-21 12:24:31 +02:00
Served Smart 4d1d3c5311 🚑 Hotfix: Fix issues with article shortcode 2025-07-21 12:24:06 +02:00
Served Smart 5b84d57817 🚑 Hotfix: Fix incorrect href in article shortcode
See: https://github.com/nunocoracao/blowfish/pull/2297#issuecomment-3085165961
2025-07-17 21:51:07 +02:00
Nuno C. c4753defd4 Merge pull request #2297 from ZhenShuo2021/feat/article-shortcode
✨ Feat: add options for article shortcode
2025-07-17 16:38:29 +01:00
ZhenShuo Leo 965c241f8c feat: add support for compactSummary option in article shortcode 2025-07-13 18:44:45 +08:00
ZhenShuo Leo b4a7741b39 feat: add support for showSummary in article shortcode 2025-07-13 18:44:45 +08:00
Served Smart 5e8561d83b 🚸 UX: Use anchor tags in article-meta/basic.html
- This removes an inline event handler
- This also adds an aria-label

Using javascript instead of just using <a></a> is bad practice regarding accessibility and automated processing of web pages. Even the browser doesn't show a hint if hovering badges when using the old implementation. This in my opinion is a good way to replace inline event handlers in that code.
2025-07-11 17:03:35 +02: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 2978995211 style(article-link): run prettier format 2025-07-09 23:43:26 +08:00