mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:01:42 +08:00
Replace env variable with SITE config object
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
---
|
||||
import { SITE } from "src/config";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Main from "@layouts/Main.astro";
|
||||
import Header from "@components/Header.astro";
|
||||
import Footer from "@components/Footer.astro";
|
||||
import Search from "@components/Search";
|
||||
import type { Frontmatter } from "@utils/types";
|
||||
import type { Frontmatter } from "src/types";
|
||||
|
||||
localStorage.setItem("myCat", "Tom");
|
||||
|
||||
@@ -20,7 +21,7 @@ const searchList = posts.map(({ frontmatter }) => ({
|
||||
}));
|
||||
---
|
||||
|
||||
<Layout title={`Search | ${import.meta.env.PUBLIC_SITE_TITLE}`}>
|
||||
<Layout title={`Search | ${SITE.title}`}>
|
||||
<Header activeNav="search" />
|
||||
<Main pageTitle="Search" pageDesc="Search any article ...">
|
||||
<Search client:load searchList={searchList} />
|
||||
|
||||
Reference in New Issue
Block a user