HAKSJDHAJLKSGDHLJASHDK
This commit is contained in:
parent
eb03df4661
commit
15cfef5332
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ export async function addPostsToFeed(feed: Feed, main?: boolean) {
|
|||
.slice(0,20);
|
||||
|
||||
posts.forEach((post) => {
|
||||
const url: string = `${baseURL}/posts/${post.id}`
|
||||
if (post.data.draft) { return }
|
||||
|
||||
const url: string = `${baseURL}/posts/${post.slug}`
|
||||
let title: string = '';
|
||||
if (main) {
|
||||
title = title.concat('[blog] ');
|
||||
|
|
Loading…
Add table
Reference in a new issue