Commit Graph

32 Commits

Author SHA1 Message Date
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
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 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
ZhenShuo Leo 35faec527b refactor(article-link): abstract anchor attributes for making article links formattable 2025-07-09 23:39:03 +08:00
Served Smart 1736cafcf4 ♻️ Refactor: Move inline styles containing background-image: out of line
This greatly reduces the number of inline styles in the project and enhances maintainability by avoiding a lot of duplicate code.

This also reduces the number of hashes required for a CSP since all previous background-image inline styles are now in main.css.
2025-06-27 19:21:58 +02:00
Nuno Coração a21d70697f final polish and bug fixes 2024-11-08 18:03:19 +00:00
Zoe Roux 9dc7940718 Use markdown emojify instead of dump emojify 2024-05-31 12:37:29 +02:00
Nuno Coração 8bbd8b8626 backgrounds and feature images support svg 2024-03-09 23:44:14 +00:00
Nuno Coração e87e066aa7 fix all issues with https://github.com/nunocoracao/blowfish/pull/1216 2024-02-10 17:54:51 +00:00
Ryan Gibson 854f773c65 Remove extraneous backdrop-blurs across partials 2023-12-18 13:35:45 -05:00
Nuno Coração ad620c454b final 2023-04-29 16:55:14 +01:00
Nuno Coração 53e6a6a45b Default featured image 2023-04-29 12:08:08 +01:00
Nuno Coração b2849743d6 🐛 fix card height in lists 2023-04-10 21:56:12 +01:00
Nuno Coração fbb78892bf ️ revert image processing behaviour (.fill to .resize) 2023-01-14 11:58:49 +00:00
Nuno Coração 41f90d20a5 🐛 fix disableImageOptimization usage across all images in theme 2023-01-05 18:23:21 +00:00
Nuno Coração 6bccf5c7d9 ♻️ refactor article links, cards, and recent articles partials 2022-12-31 15:58:20 +00:00