Compare commits

...

4 commits

Author SHA1 Message Date
Web-serfer
71707e495b Изменения файла robots.txt 2026-04-14 23:17:38 +05:00
Web-serfer
b8661a7b54 fix: исправить скрипт сборки
Co-authored-by: aider (groq/llama-3.3-70b-versatile) <aider@aider.chat>
2026-04-14 20:45:12 +05:00
Web-serfer
40c79f47ed chore: добавь файлы в .gitignore
Co-authored-by: aider (groq/llama-3.3-70b-versatile) <aider@aider.chat>
2026-04-14 20:35:14 +05:00
Web-serfer
d86c3487d5 chore: добавь .aider 2026-04-14 20:35:12 +05:00
7 changed files with 29 additions and 4 deletions

View file

@ -0,0 +1 @@
{"version":"1.21.0"}

15
.gitignore vendored
View file

@ -35,9 +35,20 @@ nul
# Qwen Code settings
.qwen/
# Astro cache
# Astro & TS
.astro/
**/.astro/
src/env.d.ts
.temp/
.cache/
# VS Code settings (для вложенных директорий)
**/.vscode/
# PocketBase
pb_data/
*.db
*.db-shm
*.db-wal

View file

@ -8,5 +8,6 @@ Disallow: /auth/
Disallow: /404
Disallow: /blog/search
# url файла sitemap после деплоя проекта
Sitemap: https://avtourist-surgut.ru/sitemap-index.xml

View file

@ -6,7 +6,7 @@ import RelatedPosts from '@components/blog/RelatedPosts.astro';
import ArticleTableOfContents from '@components/blog/ArticleTableOfContents.astro';
import { getCollection, getEntry, render } from 'astro:content';
export const prerender = false;
export const prerender = true;
export async function getStaticPaths() {
const posts = await getCollection('blog') as { id: string; data: Record<string, any> }[];

View file

@ -9,6 +9,18 @@ import CTA from '@components/base/CTA.astro';
import SearchModal from '@components/base/SearchModal.astro';
import { getCollection } from 'astro:content';
export const prerender = true;
export async function getStaticPaths() {
const posts = await getCollection('blog');
const POSTS_PER_PAGE = 6;
const totalPages = Math.ceil(posts.length / POSTS_PER_PAGE);
return Array.from({ length: totalPages }, (_, i) => ({
params: { page: String(i + 2) }, // Начинаем со 2-й страницы (1-я это /blog/)
}));
}
const posts = await getCollection('blog');
// Сортируем посты по дате (новые сверху)

View file

@ -7,7 +7,7 @@
"dev": "bun run scripts/dev.js",
"dev:backend": "cd backend && ./pocketbase.exe serve",
"dev:frontend": "cd frontend && bun dev",
"build:frontend": "cd frontend && bun run build",
"build:frontend": "cd frontend && bun build",
"preview:frontend": "cd frontend && bun run preview"
},
"workspaces": [

0
src/pages/index.astro Normal file
View file