loading and seo optimization, big design update

This commit is contained in:
2026-04-24 01:50:41 +07:00
parent de5bf60e73
commit e8b9eb5c52
20 changed files with 866 additions and 405 deletions
+2 -2
View File
@@ -24,11 +24,11 @@ export default async function BlogIndexPage({ params }: Props) {
let records: PBPost[] = [];
try {
// Динамически выбираем таблицу: posts_ru или posts_en
records = await pb.collection(`posts_${lang}`).getFullList<PBPost>({
filter: "published = true",
sort: "-created",
cache: "no-store",
fetch: (url, config) =>
fetch(url, { ...config, next: { revalidate: 3600 } }),
});
} catch (err) {
console.error("Failed to fetch blog posts:", err);