From 134f0ce564795f840d1dbae459589dceaf67884c Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sat, 3 Jun 2023 17:03:40 +0200 Subject: [PATCH] feat: add @scripts resolve alias --- astro.config.ts | 1 + src/components/widgets/decorations/Snow.astro | 4 ++-- src/layouts/Layout.astro | 2 +- src/layouts/docs/ItemLayout.astro | 8 ++++++-- tsconfig.json | 1 + 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 640af33..535d681 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -50,6 +50,7 @@ export default defineConfig({ "~": resolve(__dirname, "./src"), "@pages": resolve(__dirname, "./src/pages"), "@assets": resolve(__dirname, "./src/assets"), + "@scripts": resolve(__dirname, "./src/scripts"), "@layouts": resolve(__dirname, "./src/layouts"), "@components": resolve(__dirname, "./src/components"), }, diff --git a/src/components/widgets/decorations/Snow.astro b/src/components/widgets/decorations/Snow.astro index 637a286..6584132 100644 --- a/src/components/widgets/decorations/Snow.astro +++ b/src/components/widgets/decorations/Snow.astro @@ -1,5 +1,5 @@ -
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index deb09ba..2c2ef2d 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -43,7 +43,7 @@ const { title, description, keywords, schemaOrg } = {