From d76eb3ade90e51917260abe7f3cb2967fef538ca Mon Sep 17 00:00:00 2001 From: developomp Date: Mon, 17 Jan 2022 20:12:32 +0900 Subject: [PATCH] made series home searchable and listable --- source/generate/recursiveParse/parseSeries.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/generate/recursiveParse/parseSeries.ts b/source/generate/recursiveParse/parseSeries.ts index bfcdb37..a7d317d 100644 --- a/source/generate/recursiveParse/parseSeries.ts +++ b/source/generate/recursiveParse/parseSeries.ts @@ -88,6 +88,14 @@ export default function parseSeries(data: DataToPass): void { * */ + addDocument({ + title: markdownData.title, + body: markdownData.content, + url: urlPath, + }) + + map.posts[urlPath] = postData + // series markdown starting with 0 is a series descriptor if (isFileDescriptor) { map.series[urlPath] = { @@ -96,14 +104,6 @@ export default function parseSeries(data: DataToPass): void { length: 0, } } else { - addDocument({ - title: markdownData.title, - body: markdownData.content, - url: urlPath, - }) - - map.posts[urlPath] = postData - // put series post in appropriate series for (const key of Object.keys(map.series)) { if (urlPath.includes(key)) {