mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-04-02 01:54:50 +00:00
Update nav
This commit is contained in:
parent
1da199957a
commit
3a505c3ce9
4 changed files with 4 additions and 13 deletions
|
|
@ -4,5 +4,5 @@
|
|||
|
||||
<a href="/">Home</a>
|
||||
<a href="/about/">About</a>
|
||||
<a href="/blog/">Blog</a>
|
||||
<!-- <a href="/blog/">Blog</a> -->
|
||||
<a href="/tags/">Tags</a>
|
||||
|
|
|
|||
|
|
@ -6,11 +6,9 @@ const { frontmatter } = Astro.props;
|
|||
|
||||
<BaseLayout pageTitle={frontmatter.title}>
|
||||
<h1>{frontmatter.title}</h1>
|
||||
<p>{frontmatter.pubDate.toLocaleDateString()}</p>
|
||||
<p><em>{frontmatter.description}</em></p>
|
||||
<p>{frontmatter.pubDate.toString().slice(0, 10)}</p>
|
||||
|
||||
<p>Written by: {frontmatter.author}</p>
|
||||
|
||||
<img src={frontmatter.image.url} width="300" alt={frontmatter.image.alt} />
|
||||
|
||||
<div class="tags">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
---
|
||||
import Footer from "@/components/Footer.astro";
|
||||
import PostList from "@/components/Posts/PostList.astro";
|
||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||
import "@/styles/global.css";
|
||||
|
||||
|
|
@ -20,8 +18,4 @@ const pageTitle = "About Me";
|
|||
This site will update as I complete more of the tutorial, so keep checking
|
||||
back and see how my journey is going!
|
||||
</p>
|
||||
|
||||
<h1>My Astro Learning Blog</h1>
|
||||
<p>This is where I will post about my journey learning Astro.</p>
|
||||
<PostList />
|
||||
</BaseLayout>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
import PostList from "@/components/Posts/PostList.astro";
|
||||
import "../styles/global.css";
|
||||
import Navigation from "../components/Navigation.astro";
|
||||
|
||||
const pageTitle = "Homepage";
|
||||
|
||||
|
|
@ -11,6 +11,5 @@ const pageTitle = "Homepage";
|
|||
|
||||
<BaseLayout pageTitle={pageTitle}>
|
||||
<h1>My Astro Site</h1>
|
||||
|
||||
<Navigation />
|
||||
<PostList />
|
||||
</BaseLayout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue