Fixing and Sitemap and Robots.txt

This commit is contained in:
2023-12-10 17:14:10 +01:00
parent 3d95bffb6a
commit 6c9c496f05
33 changed files with 150 additions and 57 deletions

View File

@@ -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} />