Commit 3071821

HPCesia <me@hpcesia.com>
2025-04-04 13:13:28
fix: asideconfig not has effect
1 parent 8679d67
Changed files (1)
src/pages/[...page].astro
@@ -1,5 +1,5 @@
 ---
-import { commentConfig, siteConfig } from '@/config';
+import { asideConfig, commentConfig, siteConfig } from '@/config';
 import ProfileCard from '@components/aside/ProfileCard.astro';
 import ResentCommentsCard from '@components/aside/ResentCommentsCard.astro';
 import SiteInfoCard from '@components/aside/SiteInfoCard.astro';
@@ -36,6 +36,6 @@ const categories = await getCategories();
     <SiteInfoCard />
   </Fragment>
   <Fragment slot="aside-sticky">
-    {commentConfig.enable && commentConfig.provider !== 'giscus' && <ResentCommentsCard />}
+    {commentConfig.enable && asideConfig.recentComment.enable && <ResentCommentsCard />}
   </Fragment>
 </MainLayout>