Some Code Cleanup

This commit is contained in:
2023-12-25 21:54:40 +01:00
parent a2687083e0
commit 3108d9bf20
61 changed files with 305 additions and 247 deletions

View File

@@ -1,5 +1,5 @@
---
import {CollectionEntry} from "astro:content"
import {CollectionEntry} from "astro:content";
import {l} from "../util/util";
import {astroI18n} from "astro-i18n";
import {Image} from "astro:assets";
@@ -7,7 +7,7 @@ import TagComponent from "./TagComponent.astro";
import P from "./P.astro";
interface Props {
post: CollectionEntry<'announcements'>
post: CollectionEntry<"announcements">
}
const { post } = Astro.props as Props;
@@ -30,7 +30,7 @@ const { post } = Astro.props as Props;
<P>{post.data.description}</P>
<div class="mt-1">
{post.data.tags.map((tag) => (
<TagComponent tag={tag} />
<TagComponent tag={tag} />
))}
</div>
</div>