Skip to content

Commit 45fe85a

Browse files
committed
content: update
1 parent 3d78510 commit 45fe85a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/layouts/DiaryLayout.astro src/layouts/XyyLayout.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Header from "../components/Header.astro";
55
import Footer from "../components/Footer.astro";
66
import FormattedDate from "../components/FormattedDate.astro";
77
8-
type Props = CollectionEntry<"diary">["data"];
8+
type Props = CollectionEntry<"xyy">["data"];
99
1010
const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
1111
---

src/pages/blog/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const posts = (await getCollection("blog")).sort(
7777
{
7878
posts.reverse().map((post) => (
7979
<li>
80-
<a href={`/blog/${post.slug}/`}>
80+
<a href={`/blog/${post.slug}`}>
8181
<h5 class="title">{post.data.title}</h5>
8282
<p class="date">
8383
<FormattedDate

src/pages/xyy/[...slug].astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { type CollectionEntry, getCollection } from "astro:content";
3-
import DiaryLayout from "../../layouts/DiaryLayout.astro";
3+
import DiaryLayout from "../../layouts/XyyLayout.astro";
44
55
export async function getStaticPaths() {
66
const posts = await getCollection("xyy");

src/pages/xyy/index.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const posts = (await getCollection("xyy")).sort(
7777
{
7878
posts.reverse().map((post) => (
7979
<li>
80-
<a href={`/xyy/${post.slug}/`}>
80+
<a href={`/xyy/${post.slug}`}>
8181
<h5 class="title">{post.data.title}</h5>
8282
<p class="date">
8383
<FormattedDate

0 commit comments

Comments
 (0)