Some Code Cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user