respect aspect ration for works
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user