mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Reposition tags to the bottom of the article
This commit is contained in:
@@ -35,16 +35,17 @@ const { Content, frontmatter } = Astro.props.post;
|
|||||||
<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" />
|
<Datetime datetime={frontmatter.datetime} size="lg" className="my-2" />
|
||||||
<ul class="tags-container">
|
|
||||||
{frontmatter.tags.map((tag) => <Tag name={tag} />)}
|
|
||||||
</ul>
|
|
||||||
<article
|
<article
|
||||||
id="article"
|
id="article"
|
||||||
role="article"
|
role="article"
|
||||||
class="mx-auto max-w-3xl prose prose-slate"
|
class="mx-auto max-w-3xl mt-8 prose prose-slate"
|
||||||
>
|
>
|
||||||
<Content />
|
<Content />
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<ul class="tags-container">
|
||||||
|
{frontmatter.tags.map((tag) => <Tag name={tag} />)}
|
||||||
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
</Layout>
|
</Layout>
|
||||||
@@ -57,6 +58,6 @@ const { Content, frontmatter } = Astro.props.post;
|
|||||||
@apply font-semibold text-2xl text-skin-accent;
|
@apply font-semibold text-2xl text-skin-accent;
|
||||||
}
|
}
|
||||||
.tags-container {
|
.tags-container {
|
||||||
@apply mb-8;
|
@apply my-8;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user