Fixing and Sitemap and Robots.txt
This commit is contained in:
@@ -4,6 +4,7 @@ import {l} from "../util/util";
|
||||
import {astroI18n} from "astro-i18n";
|
||||
import {Image} from "astro:assets";
|
||||
import TagComponent from "./TagComponent.astro";
|
||||
import P from "./P.astro";
|
||||
|
||||
interface Props {
|
||||
post: CollectionEntry<'announcements'>
|
||||
@@ -21,12 +22,12 @@ const { post } = Astro.props as Props;
|
||||
) : null}
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold">{post.data.title}</h2>
|
||||
<div class="text-gray-500">{Intl.DateTimeFormat(astroI18n.locale, {
|
||||
<P class="text-gray-500">{Intl.DateTimeFormat(astroI18n.locale, {
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
year: "numeric"
|
||||
}).format(post.data.created)}</div>
|
||||
<div>{post.data.description}</div>
|
||||
}).format(post.data.created)}</P>
|
||||
<P>{post.data.description}</P>
|
||||
<div>
|
||||
{post.data.tags.map((tag) => (
|
||||
<TagComponent tag={tag} />
|
||||
|
||||
Reference in New Issue
Block a user