From eceefd1d848de40752421f8723ff0782c7956785 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 22:42:47 -0400 Subject: [PATCH 1/3] chore(deps): bump sigstore/cosign-installer in the ci-dependencies group (#2028) Bumps the ci-dependencies group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer). Updates `sigstore/cosign-installer` from 3.8.2 to 3.9.1 - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.2...v3.9.1) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-version: 3.9.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ci-dependencies ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/docker-build-push.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index ee7efa7c1..b48381a6f 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -37,7 +37,7 @@ jobs: network=host - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@v3.8.2 + uses: sigstore/cosign-installer@v3.9.1 - name: Login to GitHub Container Registry uses: docker/login-action@v3 if: github.event_name != 'pull_request' From 82c53a1c80069734da273883885d764ada0c1dd2 Mon Sep 17 00:00:00 2001 From: Garklein <63201615+Garklein@users.noreply.github.com> Date: Mon, 7 Jul 2025 22:46:52 -0400 Subject: [PATCH 2/3] fix docs for using custom components compositionally (#2044) --- docs/advanced/creating components.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/advanced/creating components.md b/docs/advanced/creating components.md index 369405b07..84e038012 100644 --- a/docs/advanced/creating components.md +++ b/docs/advanced/creating components.md @@ -226,9 +226,11 @@ Then, you can use it like any other component in `quartz.layout.ts` via `Compone As Quartz components are just functions that return React components, you can compositionally use them in other Quartz components. ```tsx title="quartz/components/AnotherComponent.tsx" -import YourComponent from "./YourComponent" +import YourComponentConstructor from "./YourComponent" export default (() => { + const YourComponent = YourComponentConstructor() + function AnotherComponent(props: QuartzComponentProps) { return (
From 7253557d2c5e3ee6ff2f093068cd6beac6defe6d Mon Sep 17 00:00:00 2001 From: Wen Taichi Date: Tue, 8 Jul 2025 10:52:49 +0800 Subject: [PATCH 3/3] fix(goatcounter): properly count SPA page hits (#2035) 1. Should not create new instance after count.js, as it already setup an instance. 2. Script block would be removed when navigating with SPA, and it cause count.js can not find endpoint by query. The solution is to set endpoint manually. --- quartz/plugins/emitters/componentResources.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts index 5fdc5c27b..61e2ba858 100644 --- a/quartz/plugins/emitters/componentResources.ts +++ b/quartz/plugins/emitters/componentResources.ts @@ -135,15 +135,19 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso `) } else if (cfg.analytics?.provider === "goatcounter") { componentResources.afterDOMLoaded.push(` + const goatcounterScriptPre = document.createElement('script'); + goatcounterScriptPre.textContent = \` + window.goatcounter = { no_onload: true }; + \`; + document.head.appendChild(goatcounterScriptPre); + + const endpoint = "https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? "goatcounter.com"}/count"; const goatcounterScript = document.createElement('script'); goatcounterScript.src = "${cfg.analytics.scriptSrc ?? "https://gc.zgo.at/count.js"}"; goatcounterScript.defer = true; - goatcounterScript.setAttribute( - 'data-goatcounter', - "https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? "goatcounter.com"}/count" - ); + goatcounterScript.setAttribute('data-goatcounter', endpoint); goatcounterScript.onload = () => { - window.goatcounter = { no_onload: true }; + window.goatcounter.endpoint = endpoint; goatcounter.count({ path: location.pathname }); document.addEventListener('nav', () => { goatcounter.count({ path: location.pathname });