From 001055ee51307e6a528ab78ea4c2b697dea5cd01 Mon Sep 17 00:00:00 2001 From: kami <97310758+VlxtIykg@users.noreply.github.com> Date: Wed, 4 Mar 2026 04:48:39 +0800 Subject: [PATCH] patch(): Patched type aliases Changed inferred path i.e., "./", "../", "../../". into @ import path. --- src/components/BaseHead.astro | 4 ++-- src/components/Header.astro | 4 ++-- src/content/blog/personal/fileclap.mdx | 4 ++-- src/content/blog/personal/horsa.md | 3 +-- src/content/blog/personal/osuProgress.md | 2 +- src/layouts/BlogPost.astro | 11 +++-------- src/pages/blog/personal/[id].astro | 2 +- src/pages/blog/university/[id].astro | 2 +- src/pages/index.astro | 10 ++++------ 9 files changed, 17 insertions(+), 25 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index f22a7d4..6b4ad3b 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -1,9 +1,9 @@ --- // Import the global.css file here so that it is included on // all pages through the use of the component. -import '../styles/global.css'; +import '@styles/global.css'; import type { ImageMetadata } from 'astro'; -import { SITE_TITLE } from '../consts'; +import { SITE_TITLE } from '@ptypes/consts.ts'; interface Props { title: string; diff --git a/src/components/Header.astro b/src/components/Header.astro index 8987d25..c32204a 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,6 +1,6 @@ --- -import { SITE_TITLE } from '../consts'; -import HeaderLink from './HeaderLink.astro'; +import { SITE_TITLE } from '@ptypes/consts.ts'; +import HeaderLink from '@components/HeaderLink.astro'; import { getCollection } from 'astro:content'; const personalPosts = (await getCollection('personal')).sort( diff --git a/src/content/blog/personal/fileclap.mdx b/src/content/blog/personal/fileclap.mdx index 50f3a3a..65993a9 100644 --- a/src/content/blog/personal/fileclap.mdx +++ b/src/content/blog/personal/fileclap.mdx @@ -6,8 +6,8 @@ gitLink: 'https://github.com/juli0n21/fileclap' --- import { Image } from 'astro:assets'; -import homeview from '../../../assets/fileclap/homeview.png'; -import search from '../../../assets/fileclap/search.png'; +import homeview from '@assets/fileclap/homeview.png'; +import search from '@assets/fileclap/search.png';