quartz state
This commit is contained in:
parent
adf442036b
commit
53944f2e85
5 changed files with 47 additions and 17 deletions
|
@ -8,23 +8,22 @@ import * as Plugin from "./quartz/plugins"
|
||||||
*/
|
*/
|
||||||
const config: QuartzConfig = {
|
const config: QuartzConfig = {
|
||||||
configuration: {
|
configuration: {
|
||||||
pageTitle: "Quartz 4",
|
pageTitle: "Speisekarten Explorer",
|
||||||
pageTitleSuffix: "",
|
pageTitleSuffix: "",
|
||||||
enableSPA: true,
|
enableSPA: true,
|
||||||
enablePopovers: true,
|
enablePopovers: true,
|
||||||
analytics: {
|
analytics: {
|
||||||
provider: "plausible",
|
|
||||||
},
|
},
|
||||||
locale: "en-US",
|
locale: "en-US",
|
||||||
baseUrl: "quartz.jzhao.xyz",
|
baseUrl: "menus.byte.wtf",
|
||||||
ignorePatterns: ["private", "templates", ".obsidian"],
|
ignorePatterns: ["private", "templates", ".obsidian"],
|
||||||
defaultDateType: "modified",
|
defaultDateType: "modified",
|
||||||
theme: {
|
theme: {
|
||||||
fontOrigin: "googleFonts",
|
fontOrigin: "googleFonts",
|
||||||
cdnCaching: true,
|
cdnCaching: false,
|
||||||
typography: {
|
typography: {
|
||||||
header: "Schibsted Grotesk",
|
header: "Roboto",
|
||||||
body: "Source Sans Pro",
|
body: "Roboto Mono",
|
||||||
code: "IBM Plex Mono",
|
code: "IBM Plex Mono",
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
|
@ -45,8 +44,8 @@ const config: QuartzConfig = {
|
||||||
gray: "#646464",
|
gray: "#646464",
|
||||||
darkgray: "#d4d4d4",
|
darkgray: "#d4d4d4",
|
||||||
dark: "#ebebec",
|
dark: "#ebebec",
|
||||||
secondary: "#7b97aa",
|
secondary: "#FD3656",
|
||||||
tertiary: "#84a59d",
|
tertiary: "#31FEFD",
|
||||||
highlight: "rgba(143, 159, 169, 0.15)",
|
highlight: "rgba(143, 159, 169, 0.15)",
|
||||||
textHighlight: "#b3aa0288",
|
textHighlight: "#b3aa0288",
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,12 +6,7 @@ export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
footer: Component.Footer({
|
footer: Component.Spacer(),
|
||||||
links: {
|
|
||||||
GitHub: "https://github.com/jackyzha0/quartz",
|
|
||||||
"Discord Community": "https://discord.gg/cRFFHYye7t",
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// components for pages that display a single page (e.g. a single note)
|
// components for pages that display a single page (e.g. a single note)
|
||||||
|
|
|
@ -246,9 +246,8 @@ export function renderPage(
|
||||||
))}
|
))}
|
||||||
</Header>
|
</Header>
|
||||||
<div class="popover-hint">
|
<div class="popover-hint">
|
||||||
{beforeBody.map((BodyComponent) => (
|
{slug !== "index" &&
|
||||||
<BodyComponent {...componentData} />
|
beforeBody.map((BodyComponent) => <BodyComponent {...componentData} />)}
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Content {...componentData} />
|
<Content {...componentData} />
|
||||||
|
|
|
@ -1,3 +1,40 @@
|
||||||
@use "./base.scss";
|
@use "./base.scss";
|
||||||
|
|
||||||
// put your custom CSS here!
|
// put your custom CSS here!
|
||||||
|
|
||||||
|
// hide date for subfolders on folderpage
|
||||||
|
.page-listing {
|
||||||
|
li.section-li:has(.section .desc) {
|
||||||
|
.meta {
|
||||||
|
// hides date, keep indent
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.section {
|
||||||
|
grid-template-columns: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.page-header div.popover-hint p.content-meta {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.popover-hint div.page-listing p {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// indicate folder more clearly on folderpage
|
||||||
|
.page-listing {
|
||||||
|
li.section-li:has(.section .desc a.internal[href$="/"]) {
|
||||||
|
.desc a.internal {
|
||||||
|
// prepend folder emoji
|
||||||
|
&:before {
|
||||||
|
content: "📁";
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// hide Date if frontmatter contains cssclasses hideDate
|
||||||
|
body:has(.page-header ~ article.hideDate) .content-meta {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue