mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-28 07:14:05 -06:00
Formatting
This commit is contained in:
parent
4c50cf9338
commit
c1b7ef4f6f
@ -128,7 +128,10 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
|
||||
const slug = file.data.slug!
|
||||
|
||||
const date = getDate(ctx.cfg.configuration, file.data) ?? new Date()
|
||||
if ((opts?.includeEmptyFiles || (file.data.text && file.data.text !== "")) && (slug.startsWith(feed) || feed == "index")) {
|
||||
if (
|
||||
(opts?.includeEmptyFiles || (file.data.text && file.data.text !== "")) &&
|
||||
(slug.startsWith(feed) || feed == "index")
|
||||
) {
|
||||
linkIndex.set(slug, {
|
||||
title: file.data.frontmatter?.title!,
|
||||
links: file.data.links ?? [],
|
||||
@ -170,7 +173,7 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (opts) => {
|
||||
|
||||
const fp = joinSegments("static", "contentIndex") as FullSlug
|
||||
const simplifiedIndex = Object.fromEntries(
|
||||
Array.from(feedIndices.get("index") ?? [] ).map(([slug, content]) => {
|
||||
Array.from(feedIndices.get("index") ?? []).map(([slug, content]) => {
|
||||
// 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user