From 36a7d9774d628b03b53bf4ab32022d5c98a33785 Mon Sep 17 00:00:00 2001 From: Martin Morales Date: Thu, 8 Feb 2024 16:14:56 -0600 Subject: [PATCH 1/4] Added aliases for components and layouts These aliases help to reduce paths in imports. From `../../layouts/Layout.astro` to `@layouts/Layout.astro`. tsconfig.json was modified to register aliases. --- src/components/Footer.astro | 4 ++-- src/layouts/Layout.astro | 2 +- src/pages/about.astro | 2 +- src/pages/index.astro | 2 +- src/pages/now.astro | 2 +- tsconfig.json | 9 ++++++++- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index fbe4c82..8969d74 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,6 +1,6 @@ --- -import Social from "./Social.astro"; -import Navigation from "./Navigation.astro"; +import Social from "@components/Social.astro"; +import Navigation from "@components/Navigation.astro"; ---