made series home searchable and listable
This commit is contained in:
parent
34e15b637b
commit
d76eb3ade9
1 changed files with 8 additions and 8 deletions
|
@ -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
|
// series markdown starting with 0 is a series descriptor
|
||||||
if (isFileDescriptor) {
|
if (isFileDescriptor) {
|
||||||
map.series[urlPath] = {
|
map.series[urlPath] = {
|
||||||
|
@ -96,14 +104,6 @@ export default function parseSeries(data: DataToPass): void {
|
||||||
length: 0,
|
length: 0,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
addDocument({
|
|
||||||
title: markdownData.title,
|
|
||||||
body: markdownData.content,
|
|
||||||
url: urlPath,
|
|
||||||
})
|
|
||||||
|
|
||||||
map.posts[urlPath] = postData
|
|
||||||
|
|
||||||
// put series post in appropriate series
|
// put series post in appropriate series
|
||||||
for (const key of Object.keys(map.series)) {
|
for (const key of Object.keys(map.series)) {
|
||||||
if (urlPath.includes(key)) {
|
if (urlPath.includes(key)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue