Skip to content

Commit fb79dd8

Browse files
URL Problem
1 parent c245a7e commit fb79dd8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: quartz/components/NavigationLinks.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ interface Options {
1111
export default ((opts?: Options) => {
1212
const NavigationLinks: QuartzComponent = (props: QuartzComponentProps) => {
1313
const links = opts?.links ?? []
14-
console.log(links)
1514
return (
1615
<nav class="nav-links">
1716
<button className="menu-btn">

Diff for: quartz/components/pages/Blogs.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ export default (() => {
4949
</button>
5050
<div id="toc-content" class={!props.fileData.collapseToc ? "collapsed" : ""}>
5151
<ul class="overflow">
52+
{/* TODO: Handling of Folder based Pattern Files is Remaining for Rendering the Links. */}
5253
{data.toc?.map((tocEntry) => (
5354
<li key={tocEntry.slug} class={`depth-${tocEntry.depth}`}>
54-
<a href={`${data.slug}#${tocEntry.slug}`} data-for={tocEntry.slug}>
55+
<a href={`./${data.slug}#${tocEntry.slug}`} data-for={tocEntry.slug}>
5556
{tocEntry.text}
5657
</a>
5758
</li>

Diff for: quartz/plugins/emitters/404.tsx

+1-1
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/index" as FullSlug
36+
const slug = "404" as FullSlug
3737

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

0 commit comments

Comments
 (0)