Skip to content

Commit e6284cd

Browse files
Trying to solve the problem related to /blogs and /404 url
1 parent 65f7cd9 commit e6284cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quartz/plugins/emitters/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const NotFoundPage: QuartzEmitterPlugin = () => {
3333
},
3434
async emit(ctx, _content, resources): Promise<FilePath[]> {
3535
const cfg = ctx.cfg.configuration
36-
const slug = "/404/" as FullSlug
36+
const slug = "/404/index" as FullSlug
3737

3838
const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`)
3939
const path = url.pathname as FullSlug

quartz/plugins/emitters/explorerwithtocPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ExplorerWithTocPage: QuartzEmitterPlugin = (userOpts) => {
5555
async emit(ctx, _content, resources): Promise<FilePath[]> {
5656
const cfg = ctx.cfg.configuration
5757
const allFiles = _content.map((c) => c[1].data)
58-
const slug = joinSegments("blogs") as FullSlug
58+
const slug = joinSegments("blogs", "index") as FullSlug
5959
const title = "Pattern Blogs"
6060
const [tree, vfile] = defaultProcessedContent({
6161
slug,

0 commit comments

Comments
 (0)