diff --git a/.github/quartz/quartz.config.ts b/.github/quartz/quartz.config.ts new file mode 100644 index 0000000..d4bf311 --- /dev/null +++ b/.github/quartz/quartz.config.ts @@ -0,0 +1,74 @@ +import { QuartzConfig } from "./quartz/cfg" +import * as Plugin from "./quartz/plugins" + +const config: QuartzConfig = { + configuration: { + pageTitle: "Prototype Aspect", + enableSPA: false, + enablePopovers: true, + baseUrl: "peaceultime.com/static/obsidian", + ignorePatterns: ["private", "templates", ".obsidian"], + defaultDateType: "created", + theme: { + typography: { + header: "Schibsted Grotesk", + body: "Source Sans Pro", + code: "IBM Plex Mono", + }, + colors: { + lightMode: { + light: "#faf8f8", + lightgray: "#e5e5e5", + gray: "#b8b8b8", + darkgray: "#4e4e4e", + dark: "#2b2b2b", + secondary: "#284b63", + tertiary: "#84a59d", + highlight: "rgba(143, 159, 169, 0.15)", + }, + darkMode: { + light: "#161618", + lightgray: "#393639", + gray: "#646464", + darkgray: "#d4d4d4", + dark: "#ebebec", + secondary: "#7b97aa", + tertiary: "#84a59d", + highlight: "rgba(143, 159, 169, 0.15)", + }, + }, + }, + }, + plugins: { + transformers: [ + Plugin.FrontMatter(), + Plugin.TableOfContents(), + Plugin.CreatedModifiedDate({ + priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower + }), + Plugin.SyntaxHighlighting(), + Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), + Plugin.GitHubFlavoredMarkdown(), + Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), + Plugin.Latex({ renderEngine: "katex" }), + Plugin.Description(), + ], + filters: [Plugin.RemoveDrafts()], + emitters: [ + Plugin.AliasRedirects(), + Plugin.ComponentResources({ fontOrigin: "googleFonts" }), + Plugin.ContentPage(), + Plugin.FolderPage(), + Plugin.TagPage(), + Plugin.ContentIndex({ + enableSiteMap: true, + enableRSS: true, + }), + Plugin.Assets(), + Plugin.Static(), + Plugin.NotFoundPage(), + ], + }, +} + +export default config diff --git a/.github/quartz/quartz.layout.ts b/.github/quartz/quartz.layout.ts new file mode 100644 index 0000000..022403b --- /dev/null +++ b/.github/quartz/quartz.layout.ts @@ -0,0 +1,42 @@ +import { PageLayout, SharedLayout } from "./quartz/cfg" +import * as Component from "./quartz/components" + +// components shared across all pages +export const sharedPageComponents: SharedLayout = { + head: Component.Head(), + header: [], + footer: [], +} + +// components for pages that display a single page (e.g. a single note) +export const defaultContentPageLayout: PageLayout = { + 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.DesktopOnly(Component.TableOfContents()), + Component.Backlinks(), + ], +} + +// components for pages that display lists of pages (e.g. tags or folders) +export const defaultListPageLayout: PageLayout = { + beforeBody: [Component.ArticleTitle()], + left: [ + Component.PageTitle(), + Component.MobileOnly(Component.Spacer()), + Component.Search(), + Component.Darkmode(), + ], + right: [], +} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 45233fd..16b6f62 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,6 +56,10 @@ jobs: run: npm ci working-directory: ./quartz + - name: Copying config + run: cp -RF content/.github/quartz . + working-directory: ./quartz + - name: Build Quartz run: npx quartz build working-directory: ./quartz diff --git a/index.md b/index.md index e69de29..520e2ec 100644 --- a/index.md +++ b/index.md @@ -0,0 +1 @@ +Home page de test \ No newline at end of file