mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
adjust layout, toc, backlinks
This commit is contained in:
parent
8d14ea1263
commit
869ab8a56a
@ -47,8 +47,8 @@ const config: QuartzConfig = {
|
||||
plugins: {
|
||||
transformers: [
|
||||
Plugin.FrontMatter(),
|
||||
Plugin.TableOfContents(),
|
||||
Plugin.CreatedModifiedDate({ priority: ["frontmatter", "filesystem"], }),
|
||||
Plugin.TableOfContents({ collapseByDefault: true }),
|
||||
// Plugin.CreatedModifiedDate({ priority: ["frontmatter", "filesystem"], }),
|
||||
Plugin.SyntaxHighlighting(),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
|
||||
@ -21,8 +21,9 @@ export const defaultContentPageLayout: PageLayout = {
|
||||
beforeBody: [
|
||||
Component.Breadcrumbs(),
|
||||
Component.ArticleTitle(),
|
||||
Component.MobileOnly(Component.TableOfContents()),
|
||||
// Component.ContentMeta(),
|
||||
// Component.TagList()
|
||||
// Component.TagList(),
|
||||
],
|
||||
left: [
|
||||
Component.PageTitle(),
|
||||
@ -42,13 +43,13 @@ export const defaultContentPageLayout: PageLayout = {
|
||||
}
|
||||
},
|
||||
}
|
||||
)),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
// Component.RecentNotes(),
|
||||
],
|
||||
)),
|
||||
// Component.DesktopOnly(Component.TableOfContents()),
|
||||
// Component.RecentNotes(),
|
||||
],
|
||||
right: [
|
||||
Component.Graph(),
|
||||
// Component.DesktopOnly(Component.TableOfContents()),
|
||||
Component.DesktopOnly(Component.TableOfContents()),
|
||||
Component.Backlinks(),
|
||||
],
|
||||
}
|
||||
|
||||
@ -1,3 +1,15 @@
|
||||
@use "./base.scss";
|
||||
|
||||
// put your custom CSS here!
|
||||
|
||||
.article-title {
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.graph {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.backlinks {
|
||||
top: -5rem;
|
||||
}
|
||||
|
||||
@ -2,5 +2,5 @@ $pageWidth: 750px;
|
||||
$mobileBreakpoint: 600px;
|
||||
$tabletBreakpoint: 1200px;
|
||||
$sidePanelWidth: 380px;
|
||||
$topSpacing: 6rem;
|
||||
$topSpacing: 2rem; // 6rem
|
||||
$fullPageWidth: $pageWidth + 2 * $sidePanelWidth;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user