From 3dfcdcea01a63fb003fde49c2f5b74ba6c8ce4b3 Mon Sep 17 00:00:00 2001 From: Lisandra-dev Date: Sat, 9 Mar 2024 10:15:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'quartz/'=20wit?= =?UTF-8?q?h=20remote=20'quartz/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quartz/cfg.ts | 6 + quartz/components/Graph.tsx | 3 + quartz/components/PageList.tsx | 2 +- quartz/components/RecentNotes.tsx | 2 +- quartz/components/TagList.tsx | 3 +- quartz/components/pages/TagContent.tsx | 2 +- quartz/components/renderPage.tsx | 24 ++-- quartz/components/scripts/graph.inline.ts | 29 +++- quartz/plugins/emitters/componentResources.ts | 9 ++ quartz/plugins/emitters/tagPage.tsx | 2 +- quartz/plugins/transformers/description.ts | 52 +++++-- quartz/plugins/transformers/frontmatter.ts | 1 + quartz/plugins/transformers/ofm.ts | 129 ++++++++++-------- quartz/styles/base.scss | 5 + 14 files changed, 180 insertions(+), 89 deletions(-) diff --git a/quartz/cfg.ts b/quartz/cfg.ts index 45c0409b5797d..51dc20d4423b8 100644 --- a/quartz/cfg.ts +++ b/quartz/cfg.ts @@ -19,6 +19,12 @@ export type Analytics = websiteId: string host?: string } + | { + provider: "goatcounter" + websiteId: string + host?: string + scriptSrc?: string + } export interface GlobalConfiguration { pageTitle: string diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx index 40ab43a2d6c99..f7ebcc9a2676f 100644 --- a/quartz/components/Graph.tsx +++ b/quartz/components/Graph.tsx @@ -17,6 +17,7 @@ export interface D3Config { opacityScale: number removeTags: string[] showTags: boolean + focusOnHover?: boolean } interface GraphOptions { @@ -37,6 +38,7 @@ const defaultOptions: GraphOptions = { opacityScale: 1, showTags: true, removeTags: [], + focusOnHover: false, }, globalGraph: { drag: true, @@ -50,6 +52,7 @@ const defaultOptions: GraphOptions = { opacityScale: 1, showTags: true, removeTags: [], + focusOnHover: true, }, } diff --git a/quartz/components/PageList.tsx b/quartz/components/PageList.tsx index 96ea55ae17466..b086b89a503ad 100644 --- a/quartz/components/PageList.tsx +++ b/quartz/components/PageList.tsx @@ -63,7 +63,7 @@ export const PageList: QuartzComponent = ({ cfg, fileData, allFiles, limit }: Pr class="internal tag-link" href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)} > - #{tag} + {tag} ))} diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx index 549b025d33683..d99878db9b5e0 100644 --- a/quartz/components/RecentNotes.tsx +++ b/quartz/components/RecentNotes.tsx @@ -63,7 +63,7 @@ export default ((userOpts?: Partial) => { class="internal tag-link" href={resolveRelative(fileData.slug!, `tags/${tag}` as FullSlug)} > - #{tag} + {tag} ))} diff --git a/quartz/components/TagList.tsx b/quartz/components/TagList.tsx index 04a483b6c39b9..ba48098bd6426 100644 --- a/quartz/components/TagList.tsx +++ b/quartz/components/TagList.tsx @@ -9,12 +9,11 @@ const TagList: QuartzComponent = ({ fileData, displayClass }: QuartzComponentPro return (