mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Replace env variable with SITE config object
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
import { SITE } from "src/config";
|
||||
import Hr from "./Hr.astro";
|
||||
import LinkButton from "./LinkButton.astro";
|
||||
|
||||
@@ -13,7 +14,7 @@ const { activeNav } = Astro.props;
|
||||
<a id="skip-to-content" href="#main-content">Skip to content</a>
|
||||
<div class="nav-container">
|
||||
<div class="top-nav-wrap">
|
||||
<a href="/" class="logo">{import.meta.env.PUBLIC_SITE_TITLE}</a>
|
||||
<a href="/" class="logo">{SITE.title}</a>
|
||||
<button class="hamburger-menu" aria-label="menu">
|
||||
<div class="icon-container flex">
|
||||
<div id="first-line"></div>
|
||||
|
||||
Reference in New Issue
Block a user