Добавил скрытие постов без даты публикации и пример скрытого поста

This commit is contained in:
Иван Кузьменко 2025-09-29 02:19:38 +03:00
parent b9e309b52f
commit 2d010fdcce
4 changed files with 18 additions and 8 deletions

View file

@ -26,7 +26,7 @@ ${posts.map((post) => `<item>
<description>${escapeXml(post.description)}</description>
<guid isPermaLink="true">https://teasanctuary.ru/blog/${post.slug}</guid>
<link>https://teasanctuary.ru/blog/${post.slug}</link>
<pubDate>${(new Date(post.date)).toUTCString()}</pubDate>
<pubDate>${(new Date(post.date!)).toUTCString()}</pubDate>
</item>`).join("\n")}
</channel>
</rss>`))