Update Backend
This commit is contained in:
@@ -61,7 +61,7 @@ const ogImage = await getImage({
|
||||
},
|
||||
article: {
|
||||
publishedTime: post.data.created.toISOString(),
|
||||
author: "SteamWar.de",
|
||||
authors: [post.data.author ?? "SteamWar.de"],
|
||||
tags: post.data.tags,
|
||||
},
|
||||
}}
|
||||
@@ -77,7 +77,7 @@ const ogImage = await getImage({
|
||||
)}
|
||||
<div class={post.data.image ? "absolute bottom-8 left-2" : "mb-4"}>
|
||||
<h1 class="text-4xl mb-0" transition:name={post.data.title + "-title"}>{post.data.title}</h1>
|
||||
<h5 class="flex items-center mt-2 text-neutral-300">
|
||||
<div class="flex items-center mt-2 text-neutral-300">
|
||||
<TagSolid class="w-4 h-4 mr-2"/>
|
||||
<div transition:name={post.data.title + "-tags"}>
|
||||
{post.data.tags.map(tag => (
|
||||
@@ -89,7 +89,14 @@ const ogImage = await getImage({
|
||||
day: "numeric",
|
||||
month: "short",
|
||||
year: "numeric",
|
||||
}).format(post.data.created)} </h5>
|
||||
}).format(post.data.created)}
|
||||
{post.data.author && (
|
||||
<Fragment>
|
||||
<Image src={`https://vzge.me/face/64/${post.data.author}`} alt={post.data.author} width={16} height={16} class="mx-1" />
|
||||
{post.data.author}
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{german && (
|
||||
|
||||
Reference in New Issue
Block a user