Files
dedinit.ru/openspec/changes/rss-full-feed/tasks.md
T
estorozhenko cb4decb672 feat(rss): полный текст и обложки в RSS-ленте, лимит 5 постов
- hugo.toml: ShowFullTextinRSS=true, [services.RSS] limit=5
- тема rDedInit rss.xml: prepend cover (figure.entry-cover, absURL) в content:encoded
- openspec change rss-full-feed (план A реализован)
2026-09-08 20:04:44 +00:00

1.4 KiB
Raw Blame History

Tasks: RSS Full Feed

1. Конфигурация

  • 1.1 В hugo.toml, в секции [params], добавить ShowFullTextinRSS = true
  • 1.2 В hugo.toml, в секции [services], добавить [services.RSS] с limit = 5
  • 1.3 В themes/rDedInit/layouts/_default/rss.xml добавить prepend обложки (figure.entry-cover с absURL) в <content:encoded>

2. Сборка и проверка

  • 2.1 Выполнить hugo --minify — сборка без ошибок
  • 2.2 Проверить grep -c '<item>' public/index.xml == 5
  • 2.3 Проверить grep -c 'content:encoded' public/index.xml == 5
  • 2.4 Проверить, что <content:encoded> начинается с <figure class="entry-cover"> и содержит абсолютную ссылку на hero.svg (скриптом из design.md)

3. Git

  • 3.1 Закоммитить изменения (hugo.toml, openspec-артефакты)
  • 3.2 Запушить в origin (gitverse.ru) — после согласования с пользователем

4. Деплой (по согласованию с пользователем)

  • 4.1 Выполнить make deploy (rsync на kpa39l.myjino.ru:2222)
  • 4.2 Проверить curl -s https://dedinit.ru/index.xml | grep -c '<item>' == 5 и наличие content:encoded