Update Backend

This commit is contained in:
2024-11-23 13:28:33 +01:00
parent e70951c9dd
commit cb65e96165
23 changed files with 493 additions and 310 deletions

View File

@@ -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 && (