rewrite: Vite+React → Astro 5 + Content Collections
Some checks failed
deploy / deploy (push) Failing after 12s

- Бэкап старой версии на ветке vite-react-backup
- Stack: Astro 5 + nginx:alpine runtime, образ ~50 МБ (был ~600 МБ)
- @astrojs/rss заменён ручным buildRss() — гарантия CDATA в content:encoded для IPB Importer
- @astrojs/sitemap → sitemap-index.xml + sitemap.txt
- 152-ФЗ cookie consent + privacy.astro + Analytics с gating
- AI-файлы: robots.txt с явным allow для AI-краулеров, ai.txt, llms.txt
- Гибридный визуал: фото-фон шапки (аэрофото Пушкино) + PT Serif + IBM Plex Sans
- Иерархия: hero "Главная история" с рамкой + "Ещё из истории" + "Хроника"
- Категория "main" (псевдо) скрыта из плашек и из Рубрик в сайдбаре
- hideFromList: true для технических постов
- featuredImage в frontmatter для постов без хорошей первой <img>
- WP resized-URL (-WxH.ext) автоматически → оригинал
- CI/CD: .gitea/workflows/deploy.yml (push → SSH-build)
- Внешние RSS: scripts/pull-external-rss.mjs пишет news.json в bind-mount, фронт фетчит client-side
This commit is contained in:
striker
2026-05-21 03:21:31 +03:00
parent a0219ee8f3
commit c65e07cd98
75 changed files with 5926 additions and 4142 deletions

12
public/ai.txt Normal file
View File

@@ -0,0 +1,12 @@
# ai.txt — Spawning.ai opt-in
# https://site.spawning.ai/spawning/ai-txt
User-Agent: *
Allow: /
Train: yes
Cite: yes
Quote: yes
Image: yes
Contact: info@pushkinohistory.ru

5
public/favicon.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect width="32" height="32" rx="3" fill="#f4ecdb"/>
<text x="50%" y="62%" font-family="Georgia, 'PT Serif', serif" font-size="20" font-weight="700"
text-anchor="middle" fill="#8a3a14">П</text>
</svg>

After

Width:  |  Height:  |  Size: 271 B

30
public/llms.txt Normal file
View File

@@ -0,0 +1,30 @@
# История города Пушкино
> Краеведческий сайт, посвящённый истории города Пушкино (Московская область).
> Материалы 20102026 годов: исторические статьи, фотографии, новости.
> Связан с форумом forum.pushkinohistory.ru (IPB).
## Ключевые страницы
- [Главная — лента публикаций](https://pushkinohistory.ru/)
- [История](https://pushkinohistory.ru/history/)
- [Фото](https://pushkinohistory.ru/foto/)
## Краеведческие статьи
- [Воронино — история села](https://pushkinohistory.ru/voronino/)
- [Старое, Старое Село](https://pushkinohistory.ru/staroe-staroe-selo/)
## RSS-фиды
- [Общий RSS](https://pushkinohistory.ru/feed.xml)
- [Карта сайта (txt)](https://pushkinohistory.ru/sitemap.txt)
- [Карта сайта (XML)](https://pushkinohistory.ru/sitemap-index.xml)
## Внешние ресурсы
- [Форум — обсуждения](https://forum.pushkinohistory.ru/)
## Контакты
- email: info@pushkinohistory.ru

20
public/robots.txt Normal file
View File

@@ -0,0 +1,20 @@
User-agent: *
Allow: /
# AI-crawlers
User-agent: GPTBot
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: anthropic-ai
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: CCBot
Allow: /
User-agent: PerplexityBot
Allow: /
Host: pushkinohistory.ru
Sitemap: https://pushkinohistory.ru/sitemap-index.xml
Sitemap: https://pushkinohistory.ru/sitemap.txt