54 Commits

Author SHA1 Message Date
ZhenShuo Leo
31039584e8 style: add overlay for background blur 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
Nuno C.
b29c6614dc Merge branch 'dev' into feat/image-position 2025-10-14 10:14:18 +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
ZhenShuo Leo
f827f8e8d8 feat: add support for imagePosition config 2025-09-30 23:09:43 +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
e6968d877f feat(hero): add support for hotlinkFeatureImages 2025-09-26 22:07:26 +08:00
ZhenShuo Leo
3f0dc1d6e1 feat(hero): replace div with img tag
Changed: basic and thumbAndBackground layout
2025-09-16 15:08:36 +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
4b9062f4c1 style(blur): rename data-target-id to data-blur-id 2025-08-05 18:36:25 +08:00
ZhenShuo Leo
ade00547b3 fix(a11y): disableImages not working when layoutBackgroundBlur is false 2025-08-05 18:23:16 +08:00
ZhenShuo Leo
9cb306a403 style: run prettier format on background.html 2025-07-22 01:31:07 +08:00
ZhenShuo Leo
18f1ed9978 refactor: simplify background image syntax 2025-07-22 01:30:39 +08:00
ZhenShuo Leo
dc778836f1 feat: hide image in a11y mode 2025-07-21 17:18:18 +08: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
95b62176cf Revert "🐛 Fix: Reassignment of variable names"
This reverts commit 80486364cd.
2025-07-11 09:09:43 +08:00
Served Smart
80486364cd 🐛 Fix: Reassignment of variable names
I'm not sure why this is such a big problem, but hugo doesn't seem to like this. It is also better to just use the intended way to reassign vars always.

Before, *feature* images if using background.html would always get overwritten, now that is fixed.
2025-06-27 19:21:59 +02: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
f2e224a042 pretty run 2025-06-17 23:17:26 +01:00
Nuno Coração
472a89c7a5 Merge pull request #2211 from servedsmart/move-most-inline-styles-out-of-line
♻️ refactor: Move most inline styles out of line
2025-06-17 22:56:25 +01:00
Served Smart
9f85c0566e ♻️ refactor: Move most inline styles out of line
- Move out of line by using already defined css classes
- Move paddings out of line
- Move margins out of line
- Move z-indexes out of line
- Move center-relative-left out of line
2025-06-12 14:00:21 +02:00
Served Smart
37ab1055e7 ♻️ refactor: Move similar javascript inline code out of line
- Move variables oid, oid_likes out of line
- Move background-blur out of line
- Move fetch-repo code out of line
2025-06-12 13:58:59 +02:00
ZhenShuo Leo
f19c61cb97 🐛 Fix: make thumbAndBackground behavior consistent
Add support for URL input, matching the behavior of other hero partials.
2025-05-03 18:30:32 +08:00
Jörn-Michael Miehe
b772b5ed97 parameter backgroundImageWidth default function usage 2024-08-08 02:00:47 +02:00
Jörn-Michael Miehe
090fd09ccf add parameter backgroundImageWidth + english documentation 2024-08-08 01:36:30 +02:00
Nuno Coração
8bbd8b8626 backgrounds and feature images support svg 2024-03-09 23:44:14 +00:00
Nuno Coração
f4fd472e6e Fix background image mode in list view 2024-02-13 21:25:46 +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
Aakash Nand
19520b4481 Ensure featureimage is present before calling resources.GetRemote
Also added ability to set author image as external url and updated
relevant documentation in configuration
2024-02-10 23:52:52 +09:00
Aakash Nand
d332b54c94 Fetch feature image from url 2024-02-06 21:03:40 +09:00
Nicolas Lorin
b00813ad26 Accessibility: add alt text for big hero 2023-03-11 11:04:40 +01:00
Nicolas Lorin
6af086dd65 Perf: add fixed image ratio 2023-03-11 11:03:26 +01:00
Nuno Coração
537f0f77a7 polish 2023-01-15 00:39:38 +00:00
Nuno Coração
a17139e1dd final polish and version bump 2023-01-05 20:45:47 +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
0eea85631c Background heros improvements 2022-12-02 22:32:37 +00:00
Anton Antonov
d024ad961b 266: Added option to disable the space between the header and the footer when using heroStyle: background 2022-11-22 12:55:24 +02:00
Anton Antonov
f4b919681e 266: Added option to disable the space between the header and the body when using heroStyle: background 2022-11-21 10:56:11 +02:00
madoke
0219bb263c add default background image to theme 2022-11-13 23:28:38 +00:00
Nuno Coração
1b0c182819 added layoutBackgroundBlur parameter to articles 2022-11-10 22:21:05 +00:00
Nuno Coração
c456627c39 small fix on background 2022-11-06 23:16:52 +00:00
Nuno Coração
2de1df4227 corrected margins for backgroun hero image 2022-11-06 21:11:36 +00:00
Nuno Coração
c3ee4b41be add blur parameter to homepage background setup 2022-11-06 19:05:01 +00:00
Nuno Coração
9b9aea0bec enhavements to blur effects 2022-11-06 01:45:53 +00:00
Nuno Coração
83f28f8cca enhavements to blur effects 2022-11-06 00:59:44 +00:00
Nuno Coração
c044f16f30 fixed bug in background setup 2022-11-05 22:06:13 +00:00