mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Add datetime under title
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
import Datetime from "@components/Datetime.astro";
|
||||||
import Header from "@components/Header.astro";
|
import Header from "@components/Header.astro";
|
||||||
import Layout from "@layouts/Layout.astro";
|
import Layout from "@layouts/Layout.astro";
|
||||||
import type { MarkdownInstance } from "astro";
|
import type { MarkdownInstance } from "astro";
|
||||||
@@ -30,6 +31,7 @@ const { Content, frontmatter } = Astro.props.post;
|
|||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
<h1 class="post-title">{frontmatter.title}</h1>
|
<h1 class="post-title">{frontmatter.title}</h1>
|
||||||
|
<Datetime datetime={frontmatter.datetime} size="lg" className="my-2" />
|
||||||
<article
|
<article
|
||||||
id="article"
|
id="article"
|
||||||
role="article"
|
role="article"
|
||||||
|
|||||||
Reference in New Issue
Block a user