mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Replace hr with Hr component
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
import Hr from "./Hr.astro";
|
||||||
import LinkButton from "./LinkButton.astro";
|
import LinkButton from "./LinkButton.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<hr class="border-skin-line" />
|
<Hr className="px-0" />
|
||||||
<div class="footer-wrapper">
|
<div class="footer-wrapper">
|
||||||
<div class="social-icons">
|
<div class="social-icons">
|
||||||
<LinkButton href="https://github.com/satnaing" className="link-button">
|
<LinkButton href="https://github.com/satnaing" className="link-button">
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
import Hr from "./Hr.astro";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
activeNav?: "posts" | "tags" | "about";
|
activeNav?: "posts" | "tags" | "about";
|
||||||
}
|
}
|
||||||
@@ -55,7 +57,7 @@ const { activeNav } = Astro.props;
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<Hr />
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Card from "@components/Card.astro";
|
|||||||
import Footer from "@components/Footer.astro";
|
import Footer from "@components/Footer.astro";
|
||||||
import LinkButton from "@components/LinkButton.astro";
|
import LinkButton from "@components/LinkButton.astro";
|
||||||
import getSortedPosts from "src/utils/getSortedPosts";
|
import getSortedPosts from "src/utils/getSortedPosts";
|
||||||
|
import Hr from "@components/Hr.astro";
|
||||||
|
|
||||||
export interface Frontmatter {
|
export interface Frontmatter {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -83,7 +84,7 @@ const sortedPosts = getSortedPosts(posts);
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr class="h-row" />
|
<Hr />
|
||||||
|
|
||||||
<section id="featured">
|
<section id="featured">
|
||||||
<h2>Featured</h2>
|
<h2>Featured</h2>
|
||||||
@@ -103,7 +104,7 @@ const sortedPosts = getSortedPosts(posts);
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr class="h-row" />
|
<Hr />
|
||||||
|
|
||||||
<section id="recent-posts">
|
<section id="recent-posts">
|
||||||
<h2>Recent Posts</h2>
|
<h2>Recent Posts</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user