respect aspect ration for works

This commit is contained in:
2026-05-14 11:36:36 +02:00
parent d74f682155
commit e722c9b4e7
6 changed files with 14 additions and 13 deletions
-2
View File
@@ -114,8 +114,6 @@ const displayTitle = post ? (post.title || formatSlug(post.slug)) : 'Work';
<div class="section-rule max-w-md mx-auto mb-6">
<span class="ornament">✦</span>
<span>{formatDate(post.date)}</span>
<span class="ornament">·</span>
<span>{post.reading_time} min</span>
{post.image_count > 0 && (
<>
<span class="ornament">·</span>
+2 -5
View File
@@ -8,12 +8,9 @@ if (!response.ok) {
return new Response(null, { status: 404 });
}
const blob = await response.blob();
const contentType = response.headers.get('content-type');
return new Response(blob, {
return new Response(await response.blob(), {
headers: {
'content-type': contentType || 'application/octet-stream',
'content-type': response.headers.get('content-type') || 'application/octet-stream',
'cache-control': 'public, max-age=3600'
}
});