Commit f8e7dd3

HPCesia <me@hpcesia.com>
2025-02-10 09:30:50
refactor: move aside component to aside folder
1 parent 40cd636
src/components/widgets/ProfileCard.astro โ†’ src/components/aside/ProfileCard.astro
File renamed without changes
src/components/widgets/SiteInfoCard.astro โ†’ src/components/aside/SiteInfoCard.astro
File renamed without changes
src/components/widgets/TOC.astro โ†’ src/components/aside/TOC.astro
File renamed without changes
src/pages/archives/categories/[category]/[page].astro
@@ -1,8 +1,8 @@
 ---
 import { siteConfig } from '@/config';
+import ProfileCard from '@components/aside/ProfileCard.astro';
 import CategoryBar from '@components/misc/CategoryBar.astro';
 import PostPage from '@components/PostPage.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
 import I18nKey from '@i18n/I18nKey';
 import GridLayout from '@layouts/GridLayout.astro';
 import { getCategories, getSortedPosts } from '@utils/content-utils';
src/pages/archives/categories/index.astro
@@ -1,10 +1,10 @@
 ---
 import type { BlogPostData } from '@/types/data';
 import { getCategories, getCategoryUrl, getSortedPosts } from '@/utils/content-utils';
+import ProfileCard from '@components/aside/ProfileCard.astro';
+import TOC from '@components/aside/TOC.astro';
 import Button from '@components/widgets/Button.astro';
 import MetaIcon from '@components/widgets/MetaIcon.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
-import TOC from '@components/widgets/TOC.astro';
 import I18nKey from '@i18n/I18nKey';
 import { i18n } from '@i18n/translation';
 import GridLayout from '@layouts/GridLayout.astro';
src/pages/archives/tags/[tag]/[page].astro
@@ -1,7 +1,7 @@
 ---
 import { siteConfig } from '@/config';
 import PostPage from '@components/PostPage.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
+import ProfileCard from '@components/aside/ProfileCard.astro';
 import I18nKey from '@i18n/I18nKey';
 import GridLayout from '@layouts/GridLayout.astro';
 import { getSortedPosts } from '@utils/content-utils';
src/pages/archives/tags/index.astro
@@ -1,10 +1,10 @@
 ---
 import type { BlogPostData } from '@/types/data';
 import { getCategoryUrl, getSortedPosts, getTags, getTagUrl } from '@/utils/content-utils';
+import ProfileCard from '@components/aside/ProfileCard.astro';
+import TOC from '@components/aside/TOC.astro';
 import Button from '@components/widgets/Button.astro';
 import MetaIcon from '@components/widgets/MetaIcon.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
-import TOC from '@components/widgets/TOC.astro';
 import I18nKey from '@i18n/I18nKey';
 import { i18n } from '@i18n/translation';
 import GridLayout from '@layouts/GridLayout.astro';
src/pages/archives/[...time].astro
@@ -1,10 +1,10 @@
 ---
 import { siteConfig } from '@/config';
 import type { BlogPostData } from '@/types/data';
+import ProfileCard from '@components/aside/ProfileCard.astro';
+import TOC from '@components/aside/TOC.astro';
 import Button from '@components/widgets/Button.astro';
 import MetaIcon from '@components/widgets/MetaIcon.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
-import TOC from '@components/widgets/TOC.astro';
 import I18nKey from '@i18n/I18nKey';
 import { i18n } from '@i18n/translation';
 import GridLayout from '@layouts/GridLayout.astro';
src/pages/posts/[article].astro
@@ -1,11 +1,11 @@
 ---
 import { articleConfig, commentConfig } from '@/config';
+import ProfileCard from '@components/aside/ProfileCard.astro';
+import TOC from '@components/aside/TOC.astro';
 import Comment from '@components/Comment.astro';
 import License from '@components/misc/License.astro';
 import PostInfo from '@components/misc/PostInfo.astro';
 import Markdown from '@components/utils/Markdown.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
-import TOC from '@components/widgets/TOC.astro';
 import GridLayout from '@layouts/GridLayout.astro';
 import { getOrCreateRenderResult } from '@utils/component-utils';
 import { getCollection } from 'astro:content';
src/pages/[...page].astro
@@ -1,9 +1,9 @@
 ---
 import { siteConfig } from '@/config';
+import ProfileCard from '@components/aside/ProfileCard.astro';
+import SiteInfoCard from '@components/aside/SiteInfoCard.astro';
 import CategoryBar from '@components/misc/CategoryBar.astro';
 import PostPage from '@components/PostPage.astro';
-import ProfileCard from '@components/widgets/ProfileCard.astro';
-import SiteInfoCard from '@components/widgets/SiteInfoCard.astro';
 import GridLayout from '@layouts/GridLayout.astro';
 import { getCategories, getSortedPosts } from '@utils/content-utils';