feat: Add aspect ratio support to imgproxy loader and apply 16:9 aspect ratio to featured images across blog posts and recent posts.

This commit is contained in:
2026-02-22 17:30:30 +01:00
parent 70984b9021
commit fb2354d2cc
4 changed files with 28 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ export default async function BlogPost({ params }: BlogPostProps) {
<div className="relative w-full h-[70vh] min-h-[500px] overflow-hidden group">
<div className="absolute inset-0 transition-transform duration-[3s] ease-out scale-110 group-hover:scale-100">
<Image
src={post.frontmatter.featuredImage}
src={`${post.frontmatter.featuredImage}?ar=16:9`}
alt={post.frontmatter.title}
fill
priority