Добавил скрытие постов без даты публикации и пример скрытого поста
This commit is contained in:
parent
b9e309b52f
commit
2d010fdcce
4 changed files with 18 additions and 8 deletions
|
|
@ -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>`))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue