Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
andyluss committed Jan 3, 2025
1 parent 868cf05 commit e153c45
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
File renamed without changes.
44 changes: 22 additions & 22 deletions src/layouts/ContentLayout.astro
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
import type { CollectionEntry } from "astro:content";
import BaseHead from "../components/BaseHead.astro";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import FormattedDate from "../components/FormattedDate.astro";
import Header from "../components/Header.astro";
interface Props {
slug: string;
collection: string;
data: CollectionEntry<"xyy">["data"];
slug: string;
collection: string;
data: CollectionEntry<"xyy">["data"];
}
const {
slug,
collection,
data: {
title,
subTitle,
tags,
level,
description,
pubDate,
updatedDate,
heroImage,
},
slug,
collection,
data: {
title,
subTitle,
tags,
level,
description,
pubDate,
updatedDate,
heroImage,
},
} = Astro.props;
---

Expand Down Expand Up @@ -96,14 +96,14 @@ const {
<hr />
</div>
<slot />
<a
href={`https://github.com/andyluss/lushisang.com/edit/main/src/content/${collection}/${slug}.md`}
class="text-sm underline"
>
编辑>>
</a>
</div>
</article>
<a
href={`https://github.com/andyluss/lushisang.com/edit/main/src/content/${collection}/${slug}.md`}
class="text-sm underline"
>
编辑>>
</a>
</main>
<Footer />
</body>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import Card from "../cards/HomeCard.astro";
import BaseHead from "../components/BaseHead.astro";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import Card from "../cards/Card.astro";
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
import Header from "../components/Header.astro";
import { SITE_DESCRIPTION, SITE_TITLE } from "../consts";
---

<!doctype html>
Expand Down

0 comments on commit e153c45

Please sign in to comment.