From a1b527d17543108947b47551ca50f7e3e96ef459 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Mon, 21 Aug 2023 20:00:26 +0900 Subject: [PATCH] added basic config --- quartz.config.ts | 16 ++++++++-------- quartz.layout.ts | 27 ++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/quartz.config.ts b/quartz.config.ts index 826e668a..74e5c9c3 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -19,14 +19,14 @@ const config: QuartzConfig = { }, colors: { lightMode: { - light: "#faf8f8", - lightgray: "#e5e5e5", - gray: "#b8b8b8", + light: "#d7eff7", + lightgray: "#f0f0f0", + gray: "#4e4e4e", darkgray: "#4e4e4e", - dark: "#2b2b2b", - secondary: "#284b63", + dark: "#284b63", + secondary: "#207e8f", tertiary: "#84a59d", - highlight: "rgba(143, 159, 169, 0.15)", + highlight: "rgba(243,143,51,0.25)", }, darkMode: { light: "#161618", @@ -46,12 +46,12 @@ const config: QuartzConfig = { Plugin.FrontMatter(), Plugin.TableOfContents(), Plugin.CreatedModifiedDate({ - priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower + priority: ["frontmatter", "git", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower }), Plugin.SyntaxHighlighting(), Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), Plugin.GitHubFlavoredMarkdown(), - Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), + Plugin.CrawlLinks({ markdownLinkResolution: "shortest", "prettyLinks": true }), Plugin.Latex({ renderEngine: "katex" }), Plugin.Description(), ], diff --git a/quartz.layout.ts b/quartz.layout.ts index 6b593321..d699f122 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -25,7 +25,30 @@ export const defaultContentPageLayout: PageLayout = { Component.Darkmode(), Component.DesktopOnly(Component.TableOfContents()), ], - right: [Component.Graph(), Component.Backlinks()], + right: [Component.Graph({ + localGraph: { + drag: true, // whether to allow panning the view around + zoom: true, // whether to allow zooming in and out + depth: 2, // how many hops of notes to display + scale: 1.1, // default view scale + repelForce: 0.5, // how much nodes should repel each other + centerForce: 0.3, // how much force to use when trying to center the nodes + linkDistance: 30, // how long should the links be by default? + fontSize: 0.6, // what size should the node labels be? + opacityScale: 1, // how quickly do we fade out the labels when zooming out? + }, + globalGraph: { + drag: true, + zoom: true, + depth: -1, + scale: 0.9, + repelForce: 0.5, + centerForce: 0.3, + linkDistance: 30, + fontSize: 0.6, + opacityScale: 1, + }, + }), Component.Backlinks()], } // components for pages that display lists of pages (e.g. tags or folders) @@ -39,3 +62,5 @@ export const defaultListPageLayout: PageLayout = { ], right: [], } + +