docs: genericize custom labels and add notes
This commit is contained in:
+27
-27
@@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
|
|||||||
*/
|
*/
|
||||||
const config: QuartzConfig = {
|
const config: QuartzConfig = {
|
||||||
configuration: {
|
configuration: {
|
||||||
pageTitle: "Lest I Forget",
|
pageTitle: "TITLE", // Site title shown in the sidebar header and browser metadata
|
||||||
pageTitleSuffix: "",
|
pageTitleSuffix: "",
|
||||||
enableSPA: true,
|
enableSPA: true,
|
||||||
enablePopovers: true,
|
enablePopovers: true,
|
||||||
@@ -16,41 +16,41 @@ const config: QuartzConfig = {
|
|||||||
provider: "plausible",
|
provider: "plausible",
|
||||||
},
|
},
|
||||||
locale: "en-US",
|
locale: "en-US",
|
||||||
baseUrl: "quartz.jzhao.xyz",
|
baseUrl: "YOUR-DOMAIN.com", // Canonical deployed domain used for OG images, RSS, and sitemap URLs
|
||||||
ignorePatterns: ["private", "templates", ".obsidian"],
|
ignorePatterns: ["private", "templates", ".obsidian"],
|
||||||
defaultDateType: "modified",
|
defaultDateType: "modified",
|
||||||
theme: {
|
theme: {
|
||||||
fontOrigin: "googleFonts",
|
fontOrigin: "googleFonts",
|
||||||
cdnCaching: true,
|
cdnCaching: true,
|
||||||
typography: {
|
typography: {
|
||||||
title: "Playfair Display",
|
title: "Playfair Display", // Sidebar site title font
|
||||||
header: "Anonymous Pro",
|
header: "Anonymous Pro", // Headings and explorer labels
|
||||||
body: "JetBrains Mono",
|
body: "JetBrains Mono", // Main prose font
|
||||||
meta: "Caveat",
|
meta: "Caveat", // Metadata and small UI labels
|
||||||
code: "JetBrains Mono",
|
code: "JetBrains Mono", // Inline code and code blocks
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
lightMode: {
|
lightMode: {
|
||||||
light: "#E0E1DA",
|
light: "#E0E1DA", // Page background
|
||||||
lightgray: "#afb0a9",
|
lightgray: "#afb0a9", // Borders and separators
|
||||||
gray: "#80817a",
|
gray: "#80817a", // Muted UI text
|
||||||
darkgray: "#353630",
|
darkgray: "#353630", // Body text
|
||||||
dark: "#171717",
|
dark: "#171717", // Strong headings and icons
|
||||||
secondary: "#2F3026",
|
secondary: "#2F3026", // Primary link color
|
||||||
tertiary: "#91a29c",
|
tertiary: "#91a29c", // Hover/active accent
|
||||||
highlight: "rgba(143, 159, 169, 0.15)",
|
highlight: "rgba(143, 159, 169, 0.15)", // Internal link and code-line highlight
|
||||||
textHighlight: "#fff23688",
|
textHighlight: "#fff23688", // ==highlighted text==
|
||||||
},
|
},
|
||||||
darkMode: {
|
darkMode: {
|
||||||
light: "#111516",
|
light: "#111516", // Page background
|
||||||
lightgray: "#7E7E7E",
|
lightgray: "#7E7E7E", // Borders and separators
|
||||||
gray: "#7D7D7D",
|
gray: "#7D7D7D", // Muted UI text
|
||||||
darkgray: "#CACACA",
|
darkgray: "#CACACA", // Body text
|
||||||
dark: "#D0D0D0",
|
dark: "#D0D0D0", // Strong headings and icons
|
||||||
secondary: "#fff",
|
secondary: "#fff", // Primary link color
|
||||||
tertiary: "#CACACA",
|
tertiary: "#CACACA", // Hover/active accent
|
||||||
highlight: "#313B4A",
|
highlight: "#313B4A", // Internal link and code-line highlight
|
||||||
textHighlight: "#313B4A",
|
textHighlight: "#313B4A", // ==highlighted text==
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -91,9 +91,9 @@ const config: QuartzConfig = {
|
|||||||
Plugin.Static(),
|
Plugin.Static(),
|
||||||
Plugin.Favicon(),
|
Plugin.Favicon(),
|
||||||
Plugin.NotFoundPage(),
|
Plugin.NotFoundPage(),
|
||||||
// Comment out CustomOgImages to speed up build time
|
// Comment out CustomOgImages to speed up build time.
|
||||||
Plugin.CustomOgImages({
|
Plugin.CustomOgImages({
|
||||||
colorScheme: "darkMode",
|
colorScheme: "darkMode", // Use the dark palette when generating social cards
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ const RuinsDarkmode: QuartzComponent = ({ displayClass, cfg }: QuartzComponentPr
|
|||||||
return (
|
return (
|
||||||
<button class={classNames(displayClass, "darkmode", "ruins-darkmode")}>
|
<button class={classNames(displayClass, "darkmode", "ruins-darkmode")}>
|
||||||
<p class="dayIcon" aria-label={i18n(cfg.locale).components.themeToggle.darkMode}>
|
<p class="dayIcon" aria-label={i18n(cfg.locale).components.themeToggle.darkMode}>
|
||||||
Dreamy Days
|
LIGHT LABEL
|
||||||
<title>{i18n(cfg.locale).components.themeToggle.darkMode}</title>
|
<title>{i18n(cfg.locale).components.themeToggle.darkMode}</title>
|
||||||
</p>
|
</p>
|
||||||
<p class="nightIcon" aria-label={i18n(cfg.locale).components.themeToggle.lightMode}>
|
<p class="nightIcon" aria-label={i18n(cfg.locale).components.themeToggle.lightMode}>
|
||||||
Somber Nights
|
DARK LABEL
|
||||||
<title>{i18n(cfg.locale).components.themeToggle.lightMode}</title>
|
<title>{i18n(cfg.locale).components.themeToggle.lightMode}</title>
|
||||||
</p>
|
</p>
|
||||||
</button>
|
</button>
|
||||||
@@ -28,8 +28,8 @@ RuinsDarkmode.css = `
|
|||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: inherit;
|
text-align: inherit;
|
||||||
color: var(--gray);
|
color: var(--gray); /* toggle label color */
|
||||||
font-family: var(--metaFont);
|
font-family: var(--metaFont); /* toggle label font */
|
||||||
font-size: 1.05rem;
|
font-size: 1.05rem;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro
|
|||||||
|
|
||||||
export default (() => {
|
export default (() => {
|
||||||
const RuinsFooter: QuartzComponent = ({ displayClass }: QuartzComponentProps) => {
|
const RuinsFooter: QuartzComponent = ({ displayClass }: QuartzComponentProps) => {
|
||||||
return <footer class={classNames(displayClass, "footer")}>See you in another file</footer>
|
return <footer class={classNames(displayClass, "footer")}>FOOTER TEXT</footer>
|
||||||
}
|
}
|
||||||
|
|
||||||
RuinsFooter.css = style
|
RuinsFooter.css = style
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default {
|
|||||||
title: "Reader mode",
|
title: "Reader mode",
|
||||||
},
|
},
|
||||||
explorer: {
|
explorer: {
|
||||||
title: "Notes",
|
title: "TITLE",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
createdWith: "Created with",
|
createdWith: "Created with",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
@use "./base.scss";
|
@use "./base.scss";
|
||||||
|
|
||||||
// put your custom CSS here!
|
// put your custom CSS here!
|
||||||
|
// Sidebar site title styling.
|
||||||
.page-title {
|
.page-title {
|
||||||
font-size: 2.6rem;
|
font-size: 2.6rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -29,22 +30,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Article heading styling.
|
||||||
.article-title {
|
.article-title {
|
||||||
font-size: 2.2rem;
|
font-size: 2.2rem;
|
||||||
margin: 2rem 0 1.2rem 0;
|
margin: 2rem 0 1.2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Date / reading-time metadata styling.
|
||||||
.content-meta {
|
.content-meta {
|
||||||
font-family: var(--metaFont);
|
font-family: var(--metaFont);
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Main article body typography.
|
||||||
.center article {
|
.center article {
|
||||||
font-size: 0.93rem;
|
font-size: 0.93rem;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dual-image floating media effect used by the custom float-image syntax.
|
||||||
.floating-image {
|
.floating-image {
|
||||||
@media all and (max-width: 800px) {
|
@media all and (max-width: 800px) {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -71,6 +76,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Float placement helpers used by the transformer output.
|
||||||
.float-left {
|
.float-left {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 2rem 0 0;
|
margin: 0 2rem 0 0;
|
||||||
@@ -86,6 +92,7 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Minimal footer styling for the custom footer component.
|
||||||
.footer {
|
.footer {
|
||||||
font-family: var(--metaFont);
|
font-family: var(--metaFont);
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
@@ -93,6 +100,7 @@
|
|||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Small spacing tweak below the explorer header button.
|
||||||
.explorer-toggle {
|
.explorer-toggle {
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user