fix(content-blog): make post ID unique (#6061)

* fix(content-blog): make post ID unique

* Fixes
This commit is contained in:
Joshua Chen 2021-12-08 09:28:17 +08:00 committed by GitHub
parent d5d10f5656
commit 8644097ab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 13 deletions

View file

@ -219,7 +219,7 @@ async function processBlogSourceFile(
const authors = getBlogPostAuthors({authorsMap, frontMatter});
return {
id: frontMatter.slug ?? title,
id: slug,
metadata: {
permalink,
editUrl: getBlogEditUrl(),