adjust layout, toc, backlinks

This commit is contained in:
semanticdata 2023-11-06 15:00:41 -06:00
parent 8d14ea1263
commit 869ab8a56a
4 changed files with 22 additions and 9 deletions

View File

@ -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(),

View File

@ -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(),
],
}

View File

@ -1,3 +1,15 @@
@use "./base.scss";
// put your custom CSS here!
.article-title {
padding-bottom: 1rem;
}
.graph {
margin-bottom: 3rem;
}
.backlinks {
top: -5rem;
}

View File

@ -2,5 +2,5 @@ $pageWidth: 750px;
$mobileBreakpoint: 600px;
$tabletBreakpoint: 1200px;
$sidePanelWidth: 380px;
$topSpacing: 6rem;
$topSpacing: 2rem; // 6rem
$fullPageWidth: $pageWidth + 2 * $sidePanelWidth;