pages/_includes
Dominik Fuchß b3f1968422
Fix .webp SrcSet Creation Filter (#2761)
### Pull Request: Fix .webp SrcSet Creation Filter

#### Description

This PR addresses an issue with the filter for creating `.webp` srcsets
introduced in PR #2698. The original filter incorrectly searched for
extensions with a leading period (e.g., ".jpg" and ".png"). As a result,
no matches were found, preventing the srcset from being added to any
figures. This occurred because the split operation removes the period
from the file extensions.

#### Changes Made

- Updated the filter to search for file extensions without the leading
period (e.g., "jpg" and "png").
- Ensured that the resource sets are now correctly created for the
respective file extensions, allowing the `.webp` srcset to function as
intended.

#### Impact

With this change, responsive images will now correctly generate their
srcsets for the appropriate file types, improving image loading
performance and supporting better responsiveness.

#### Fixes

- Fixes #2777

Please review the changes and let me know if there are any further
adjustments needed. Thank you!
2024-10-22 10:42:20 -03:00
..
cv format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
repository Fix repo card heigth for different repo descriptions (#2525) 2024-06-24 11:53:47 -03:00
resume Fix: date pill position on CV (#2455) 2024-05-31 13:27:10 -03:00
scripts fix: search_enabled -> bib_search (#2560) 2024-07-12 17:00:48 -03:00
audio.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
bib_search.liquid fix: search_enabled -> bib_search (#2560) 2024-07-12 17:00:48 -03:00
citation.liquid Added post citation (#2377) 2024-04-29 14:28:06 -03:00
disqus.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
figure.liquid Fix .webp SrcSet Creation Filter (#2761) 2024-10-22 10:42:20 -03:00
footer.liquid Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
giscus.liquid Added "follow system" option to theme toggle (#2261) 2024-03-13 22:42:46 -03:00
head.liquid Fix offline leaflet (#2420) 2024-05-15 17:56:00 -03:00
header.liquid fix: blog highlighted in nav for child pages (#2516) 2024-06-18 14:42:02 -03:00
latest_posts.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
metadata.liquid Move libs versions to config (#2139) 2024-01-28 19:10:42 -03:00
news.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
pagination.liquid fix: remove 'index.html' in pagination (#2509) 2024-06-15 16:31:40 -03:00
projects_horizontal.liquid Feat reworked project layout (closing #2246) (#2357) 2024-04-22 21:39:22 -03:00
projects.liquid Feat reworked project layout (closing #2246) (#2357) 2024-04-22 21:39:22 -03:00
related_posts.liquid Added support for a newsletter (#2517) 2024-06-19 14:49:19 -03:00
selected_papers.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
social.liquid [Feature] InspireHEP social and citation count badge (#2638) 2024-08-19 00:03:01 -03:00
video.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00