mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Replace relative imports with util import alias
This commit is contained in:
@@ -4,8 +4,8 @@ import Header from "@components/Header.astro";
|
||||
import Footer from "@components/Footer.astro";
|
||||
import Main from "@layouts/Main.astro";
|
||||
import Card from "@components/Card.astro";
|
||||
import getSortedPosts from "src/utils/getSortedPosts";
|
||||
import type { Frontmatter } from "src/utils/types";
|
||||
import getSortedPosts from "@utils/getSortedPosts";
|
||||
import type { Frontmatter } from "@utils/types";
|
||||
|
||||
const posts = await Astro.glob<Frontmatter>("../../contents/*.md");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user