💄 Allow slash as post divider

This commit is contained in:
2024-08-17 22:38:13 +08:00
parent 2169e9c564
commit 0eaec5dd8d
6 changed files with 28 additions and 7 deletions

View File

@ -50,7 +50,7 @@ export default defineEventHandler(async (event) => {
.use(rehypeStringify)
.process(post.body.content)
const slug = post.alias ? `/posts/${post.area_alias}:${post.alias}` : `/posts/${post.id}`
const slug = post.alias ? `/posts/${post.area_alias}/${post.alias}` : `/posts/${post.id}`
feed.addItem({
date: new Date(post.published_at),