From 94ce0883e7fbf38252377af2f144c971a2ff591b Mon Sep 17 00:00:00 2001
From: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Thu, 24 Aug 2023 19:28:06 +0000
Subject: [PATCH] style: integrate tertiary color to text-select (#413)
---
quartz/plugins/emitters/componentResources.ts | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts
index 19eddc6..a62bc38 100644
--- a/quartz/plugins/emitters/componentResources.ts
+++ b/quartz/plugins/emitters/componentResources.ts
@@ -1,4 +1,4 @@
-import { FilePath, ServerSlug } from "../../util/path"
+import { FilePath, FullSlug } from "../../util/path"
import { QuartzEmitterPlugin } from "../types"
// @ts-ignore
@@ -103,7 +103,7 @@
} else {
componentResources.afterDOMLoaded.push(`
window.spaNavigate = (url, _) => window.location.assign(url)
- const event = new CustomEvent("nav", { detail: { slug: document.body.dataset.slug } })
+ const event = new CustomEvent("nav", { detail: { url: document.body.dataset.slug } })
document.dispatchEvent(event)`)
}
@@ -154,7 +154,7 @@
const postscript = joinScripts(componentResources.afterDOMLoaded)
const fps = await Promise.all([
emit({
- slug: "index" as ServerSlug,
+ slug: "index" as FullSlug,
ext: ".css",
content: transform({
filename: "index.css",
@@ -171,12 +171,12 @@
}).code.toString(),
}),
emit({
- slug: "prescript" as ServerSlug,
+ slug: "prescript" as FullSlug,
ext: ".js",
content: prescript,
}),
emit({
- slug: "postscript" as ServerSlug,
+ slug: "postscript" as FullSlug,
ext: ".js",
content: postscript,
}),
--
Gitblit v1.10.0