diff --git a/src/components/ContentGrid.astro b/src/components/ContentGrid.astro
index b265556..71f812e 100644
--- a/src/components/ContentGrid.astro
+++ b/src/components/ContentGrid.astro
@@ -1,6 +1,6 @@
---
+
import CategoryBadge from './CategoryBadge.astro';
-import Author from '@components/AuthorDisplay.astro';
export interface Props {
items: any[];
@@ -11,7 +11,6 @@ export interface Props {
hasNextPage: boolean;
endCursor: string | null;
};
- perLoad?: number; // Больше не используется, но оставляем для обратной совместимости
gridColumns?: 3 | 4;
}
@@ -21,11 +20,10 @@ const {
type = 'latest',
slug = '',
pageInfo = { hasNextPage: false, endCursor: null },
- perLoad = 11, // Игнорируется
gridColumns = 4
} = Astro.props;
-// Конфиг без perLoad, так как будем вычислять на клиенте
+// Конфиг для клиентского скрипта
const loadMoreConfig = {
type,
slug,
@@ -59,9 +57,9 @@ function shouldBeLarge(index: number, columns: number): boolean {
- {showCount && items.length > 0 && (
- ({items.length})
- )}
+ {showCount && items.length > 0 && (
+ Все статьи ({items.length})
+ )}
)}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/components/EmbeddedPost.astro b/src/components/EmbeddedPost.astro
new file mode 100644
index 0000000..9ee4e1d
--- /dev/null
+++ b/src/components/EmbeddedPost.astro
@@ -0,0 +1,24 @@
+
+
+
+ Загрузка материала...
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/NewsSingle.astro b/src/components/NewsSingle.astro
index 69d93b3..122097c 100644
--- a/src/components/NewsSingle.astro
+++ b/src/components/NewsSingle.astro
@@ -3,6 +3,9 @@ import { stripHtml } from '@/utils/htmlhelpers';
import Author from '@components/AuthorDisplay.astro';
import Subscribe from '@components/SubscribePost.astro';
import ShareButtons from '@components/ShareButtons.astro';
+import EmbeddedPost from '@components/EmbeddedPost.astro'; // шаблоны ссылок на статьи
+
+
interface Props {
@@ -56,14 +59,15 @@ const { post, pageInfo } = Astro.props;
)}
)}
-
- {post.content &&
}
+ {post.content && }
+
+
) : (
Новость не найдена
diff --git a/src/layouts/ContentLayout.astro b/src/layouts/ContentLayout.astro
index c228da6..40c56e5 100644
--- a/src/layouts/ContentLayout.astro
+++ b/src/layouts/ContentLayout.astro
@@ -18,6 +18,7 @@ import '../styles/global.css';
{`${title}`} - Деловой журнал Профиль
+
@@ -44,7 +45,6 @@ import '../styles/global.css';
{ text: "Архив", url: "/archive" },
]}
/>
-