diff --git a/components/home/RecentPosts.tsx b/components/home/RecentPosts.tsx index 02111a09..cf15dec2 100644 --- a/components/home/RecentPosts.tsx +++ b/components/home/RecentPosts.tsx @@ -74,11 +74,14 @@ export default async function RecentPosts({ locale, data }: RecentPostsProps) { suppressHydrationWarning className="px-3 py-1 text-white/80 text-[10px] md:text-xs font-bold uppercase tracking-widest border border-white/20 rounded-full bg-white/10 backdrop-blur-md" > - {new Date(post.frontmatter.date).toLocaleDateString(locale || 'de', { - year: 'numeric', - month: 'short', - day: 'numeric', - })} + {new Date(post.frontmatter.date).toLocaleDateString( + ['en', 'de'].includes(locale) ? locale : 'de', + { + year: 'numeric', + month: 'short', + day: 'numeric', + }, + )} {(new Date(post.frontmatter.date) > new Date() || post.frontmatter.public === false) && ( diff --git a/next.config.mjs b/next.config.mjs index 03cc23a7..68fb5117 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -393,6 +393,7 @@ const nextConfig = { ]; }, images: { + qualities: [75, 100], formats: ['image/webp'], deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840], remotePatterns: [