Commit Graph

17 Commits

Author SHA1 Message Date
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
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