From 300fd568e90b6edb8187a7f28d28a8a905a6df1f Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Thu, 22 Sep 2022 21:32:02 +0630 Subject: [PATCH] Replace env variable with SITE config object --- src/components/Header.astro | 3 ++- src/layouts/AboutLayout.astro | 3 ++- src/layouts/Posts.astro | 5 +++-- src/pages/404.astro | 3 ++- src/pages/posts/[slug].astro | 5 +++-- src/pages/posts/index.astro | 8 +++----- src/pages/rss.xml.ts | 7 ++++--- src/pages/search.astro | 5 +++-- src/pages/tags/[tag].astro | 3 ++- src/pages/tags/index.astro | 5 +++-- src/utils/getPageNumbers.ts | 5 +++-- 11 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index b8925d7..a7290e3 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -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; Skip to content