added commented defaults to reference while working on the layout

This commit is contained in:
semanticdata 2024-04-22 13:58:10 -05:00
parent 09b6f76bdd
commit 34656bb92a
4 changed files with 61 additions and 56 deletions

View File

@ -1,35 +0,0 @@
---
name: Bug report
about: Something about Quartz isn't working the way you expect
title: ""
labels: bug
assignees: ""
---
**Describe the bug** A clear and concise description of what the bug is.
**To Reproduce** Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior** A clear and concise description of what you expected to happen.
**Screenshots and Source** If applicable, add screenshots to help explain your problem.
You can help speed up fixing the problem by either
1. providing a simple reproduction
2. linking to your Quartz repository where the problem can be observed
**Desktop (please complete the following information):**
- Quartz Version: [e.g. v4.1.2]
- `node` Version: [e.g. v18.16]
- `npm` version: [e.g. v10.1.0]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
**Additional context** Add any other context about the problem here.

View File

@ -1,15 +0,0 @@
---
name: Feature request
about: Suggest an idea or improvement for Quartz
title: ""
labels: enhancement
assignees: ""
---
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like** A clear and concise description of what you want to happen.
**Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered.
**Additional context** Add any other context or screenshots about the feature request here.

View File

@ -16,7 +16,7 @@ const config: QuartzConfig = {
locale: "en-US",
baseUrl: "forgetfulnotes.com",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "modified",
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
@ -35,6 +35,15 @@ const config: QuartzConfig = {
secondary: "#091217", // links, nodes
tertiary: "#AA336A", // hover states, visited
highlight: "rgba(143, 159, 169, 0.2)", // internal link background
// light: "#faf8f8",
// lightgray: "#e5e5e5",
// gray: "#b8b8b8",
// darkgray: "#4e4e4e",
// dark: "#2b2b2b",
// secondary: "#284b63",
// tertiary: "#84a59d",
// highlight: "rgba(143, 159, 169, 0.15)",
},
darkMode: {
light: "#1e1e2e", // background
@ -45,6 +54,15 @@ const config: QuartzConfig = {
secondary: "#9be895", // links, nodes
tertiary: "#c072c4", // hover states, visited
highlight: "rgba(143, 159, 169, 0.2)", // internal link background
// light: "#161618",
// lightgray: "#393639",
// gray: "#646464",
// darkgray: "#d4d4d4",
// dark: "#ebebec",
// secondary: "#7b97aa",
// tertiary: "#84a59d",
// highlight: "rgba(143, 159, 169, 0.15)",
},
},
},
@ -55,8 +73,15 @@ const config: QuartzConfig = {
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
}),
Plugin.SyntaxHighlighting(),
Plugin.ObsidianFlavoredMarkdown(),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),

View File

@ -1,4 +1,4 @@
import {PageLayout, SharedLayout} from "./quartz/cfg"
import { PageLayout, SharedLayout } from "./quartz/cfg"
import * as Component from "./quartz/components"
// components shared across all pages
@ -10,8 +10,9 @@ export const sharedPageComponents: SharedLayout = {
About: "/About",
Blog: "https://miguelpimentel.do/",
Meta: "/Meta",
GitHub: "https://github.com/semanticdata/",
Source: "https://github.com/semanticdata/forgetful-notes/",
GitHub: "https://github.com/semanticdata/forgetful-notes/",
Journal: "/journal",
// Source: "https://github.com/semanticdata/forgetful-notes/",
},
}),
}
@ -24,6 +25,25 @@ export const defaultContentPageLayout: PageLayout = {
Component.MobileOnly(Component.Graph()),
Component.MobileOnly(Component.Backlinks()),
],
// beforeBody: [
// Component.Breadcrumbs(),
// Component.ArticleTitle(),
// Component.ContentMeta(),
// Component.TagList(),
// ],
// left: [
// Component.PageTitle(),
// Component.MobileOnly(Component.Spacer()),
// Component.Search(),
// Component.Darkmode(),
// Component.DesktopOnly(Component.Explorer()),
// ],
// right: [
// Component.Graph(),
// Component.DesktopOnly(Component.TableOfContents()),
// Component.Backlinks(),
// ],
}
// components for pages that display lists of pages (e.g. tags or folders)
@ -31,4 +51,14 @@ export const defaultListPageLayout: PageLayout = {
beforeBody: [Component.ArticleTitle()],
left: [Component.MobileOnly(Component.Spacer())],
right: [Component.MobileOnly(Component.Spacer())],
// beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
// left: [
// Component.PageTitle(),
// Component.MobileOnly(Component.Spacer()),
// Component.Search(),
// Component.Darkmode(),
// Component.DesktopOnly(Component.Explorer()),
// ],
// right: [],
}