File tree 3 files changed +5
-10
lines changed
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ const config: QuartzConfig = {
80
80
Plugin . ComponentResources ( ) ,
81
81
Plugin . ContentPage ( ) ,
82
82
Plugin . FolderPage ( ) ,
83
+ Plugin . ExplorerWithTocPage ( ) ,
83
84
Plugin . TagPage ( ) ,
84
85
Plugin . ContentIndex ( {
85
86
enableSiteMap : true ,
@@ -88,7 +89,6 @@ const config: QuartzConfig = {
88
89
Plugin . Assets ( ) ,
89
90
Plugin . Static ( ) ,
90
91
Plugin . NotFoundPage ( ) ,
91
- Plugin . ExplorerWithTocPage ( ) ,
92
92
] ,
93
93
} ,
94
94
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const NotFoundPage: QuartzEmitterPlugin = () => {
33
33
} ,
34
34
async emit ( ctx , _content , resources ) : Promise < FilePath [ ] > {
35
35
const cfg = ctx . cfg . configuration
36
- const slug = "404" as FullSlug
36
+ const slug = "/ 404/ " as FullSlug
37
37
38
38
const url = new URL ( `https://${ cfg . baseUrl ?? "example.com" } ` )
39
39
const path = url . pathname as FullSlug
Original file line number Diff line number Diff line change @@ -18,18 +18,13 @@ import { write } from "./helpers"
18
18
import DepGraph from "../../depgraph"
19
19
import Blogs from "../../components/pages/Blogs"
20
20
21
- interface ExplorerWithTocPageOptions extends FullPageLayout {
22
- sort ?: ( f1 : QuartzPluginData , f2 : QuartzPluginData ) => number
23
- }
24
-
25
- export const ExplorerWithTocPage : QuartzEmitterPlugin < Partial < ExplorerWithTocPageOptions > > = (
21
+ export const ExplorerWithTocPage : QuartzEmitterPlugin = (
26
22
userOpts ,
27
23
) => {
28
24
const opts : FullPageLayout = {
29
25
...sharedPageComponents ,
30
26
...defaultContentPageLayout ,
31
- pageBody : Blogs ( ) ,
32
- ...userOpts ,
27
+ pageBody : Blogs ( )
33
28
}
34
29
35
30
const {
@@ -69,7 +64,7 @@ export const ExplorerWithTocPage: QuartzEmitterPlugin<Partial<ExplorerWithTocPag
69
64
async emit ( ctx , _content , resources ) : Promise < FilePath [ ] > {
70
65
const cfg = ctx . cfg . configuration
71
66
const allFiles = _content . map ( ( c ) => c [ 1 ] . data )
72
- const slug = "blogs" as FullSlug
67
+ const slug = "/ blogs/ " as FullSlug
73
68
const title = "Pattern Blogs"
74
69
const [ tree , vfile ] = defaultProcessedContent ( {
75
70
slug,
You can’t perform that action at this time.
0 commit comments