1
1
import { PageLayout , SharedLayout } from "./quartz/cfg" ;
2
2
import * as Component from "./quartz/components" ;
3
- import { GraphOptions , defaultOptions } from "./quartz/components/Graph" ;
3
+ import { defaultOptions } from "./quartz/components/Graph" ;
4
4
5
5
// components shared across all pages
6
6
export const sharedPageComponents : SharedLayout = {
@@ -12,17 +12,8 @@ export const sharedPageComponents: SharedLayout = {
12
12
// "Discord Community": "https://discord.gg/cRFFHYye7t",
13
13
} ,
14
14
} ) ,
15
- }
15
+ } ;
16
16
17
- const graphOptions : GraphOptions = {
18
- localGraph : {
19
- ...defaultOptions . localGraph ,
20
- depth : 2
21
- } ,
22
- globalGraph : {
23
- ...defaultOptions . globalGraph ,
24
- } ,
25
- }
26
17
// components for pages that display a single page (e.g. a single note)
27
18
export const defaultContentPageLayout : PageLayout = {
28
19
beforeBody : [
@@ -39,21 +30,41 @@ export const defaultContentPageLayout: PageLayout = {
39
30
Component . DesktopOnly ( Component . Explorer ( ) ) ,
40
31
] ,
41
32
right : [
42
- Component . Graph ( graphOptions ) ,
33
+ Component . Graph ( {
34
+ localGraph : {
35
+ ...defaultOptions . localGraph ,
36
+ } ,
37
+ globalGraph : {
38
+ ...defaultOptions . globalGraph ,
39
+ } ,
40
+ } ) ,
43
41
Component . DesktopOnly ( Component . TableOfContents ( ) ) ,
44
42
Component . Backlinks ( ) ,
45
43
] ,
46
- }
44
+ } ;
47
45
48
46
// components for pages that display lists of pages (e.g. tags or folders)
49
47
export const defaultListPageLayout : PageLayout = {
50
- beforeBody : [ Component . Breadcrumbs ( ) , Component . ArticleTitle ( ) , Component . ContentMeta ( ) ] ,
48
+ beforeBody : [
49
+ Component . Breadcrumbs ( ) ,
50
+ Component . ArticleTitle ( ) ,
51
+ Component . ContentMeta ( ) ,
52
+ Component . Graph ( {
53
+ localGraph : {
54
+ ...defaultOptions . localGraph ,
55
+ depth : 2 ,
56
+ } ,
57
+ globalGraph : {
58
+ ...defaultOptions . globalGraph ,
59
+ } ,
60
+ } ) ,
61
+ ] ,
51
62
left : [
52
63
Component . PageTitle ( ) ,
53
64
Component . MobileOnly ( Component . Spacer ( ) ) ,
54
65
Component . Search ( ) ,
55
66
Component . Darkmode ( ) ,
56
67
Component . DesktopOnly ( Component . Explorer ( ) ) ,
57
68
] ,
58
- right : [ ] ,
59
- }
69
+ right : [ Component . Backlinks ( ) ] ,
70
+ } ;
0 commit comments