diff --git a/src/components/Search.astro b/src/components/Search.astro index b115350..255277f 100644 --- a/src/components/Search.astro +++ b/src/components/Search.astro @@ -60,7 +60,7 @@ const html = results .map(result => `
- + ${result.item.title} ${new Date(result.item.pubDate).toISOString().split('T')[0]} diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a1d7633..2717b54 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -18,13 +18,11 @@ const formattedRootPath = defaultTitle.toLowerCase().replace(/\s+/g, '-'); const relativePath = Astro.url.pathname const path = formattedRootPath + (relativePath === '/' ? '' : relativePath) -const pageTitle = (relativePath === '/' ? defaultTitle : `${Astro.props.title} - ${defaultTitle}`) - const navBarItems = siteConfig.navBarItems const customFooter = siteConfig.customFooter const nekoType = siteConfig.neko?.type -const { title = pageTitle, description = siteConfig.description, ogImage = "" } = Astro.props; +const { title, description = siteConfig.description, ogImage = "" } = Astro.props; --- @@ -34,8 +32,8 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" } - - {pageTitle} + + {title}
diff --git a/src/pages/404.astro b/src/pages/404.astro index 0092c37..c73b661 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -4,7 +4,7 @@ import Layout from '../layouts/Layout.astro'; const url = Astro.url.pathname --- - +

command not found.

diff --git a/src/pages/[...slug].astro b/src/pages/[...slug].astro index bf1f439..c5aab71 100644 --- a/src/pages/[...slug].astro +++ b/src/pages/[...slug].astro @@ -13,7 +13,7 @@ const { Content } = await entry.render(); --- - +

{entry.data.title}

diff --git a/src/pages/blog.astro b/src/pages/blog.astro index ac93e4c..08c41a6 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -6,7 +6,7 @@ const posts = await getCollection('posts'); posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime()); --- - +

~/blog

diff --git a/src/pages/index.astro b/src/pages/index.astro index 804367a..f8bda82 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,7 +3,7 @@ import Layout from '../layouts/Layout.astro'; --- - +

~/

Welcome!

diff --git a/src/pages/post/[...slug].astro b/src/pages/post/[...slug].astro index a81740e..b8c69c4 100644 --- a/src/pages/post/[...slug].astro +++ b/src/pages/post/[...slug].astro @@ -35,6 +35,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || `/post/${slug}/fea