Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions quartz/plugins/emitters/contentIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
// remove description and from content index as nothing downstream
// actually uses it. we only keep it in the index as we need it
// for the RSS feed
delete content.description
delete content.date
return [slug, content]
// Assigning temp allows ensuring mutation doesn't occur
const temp = { ...content }
delete temp.description
delete temp.date
return [slug, temp]
}),
)

Expand Down
Loading