-
- {/* 星空背景组件 */}
-
+
- {/* 标签信息 */}
-
-
- 该标签:{name} ~ 共计{data?.total}篇文章
-
-
-
-
-
-
-
- {data?.total > 0 &&
}
-
+
+ }>
+
+
>
);
diff --git a/src/components/ArticleLayout/index.tsx b/src/components/ArticleLayout/index.tsx
index f50f613..50c10e6 100755
--- a/src/components/ArticleLayout/index.tsx
+++ b/src/components/ArticleLayout/index.tsx
@@ -11,13 +11,14 @@ import { Article } from '@/types/app/article';
interface Props {
page: number;
+ basePath: string;
theme: Theme;
covers: string[];
swiper: { result?: SwiperItem[] };
data: Paginate
;
}
-export default ({ page, theme, covers, swiper, data }: Props) => {
+export default ({ page, basePath, theme, covers, swiper, data }: Props) => {
const sidebar = theme?.right_sidebar ?? [];
return (
@@ -29,7 +30,9 @@ export default ({ page, theme, covers, swiper, data }: Props) => {
{theme.is_article_layout === 'card' && }
{theme.is_article_layout === 'waterfall' && }
- {!!data.total && }
+ {!!data.total && (
+
+ )}
);
};
diff --git a/src/components/ArticlesFallback/index.tsx b/src/components/ArticlesFallback/index.tsx
new file mode 100644
index 0000000..2c19720
--- /dev/null
+++ b/src/components/ArticlesFallback/index.tsx
@@ -0,0 +1,12 @@
+export default ({ count = 4 }: { count?: number }) => {
+ return (
+