From 8df74185e92d3b59c064bf89d167ca9e004e1e8c Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Tue, 30 Jan 2024 05:55:10 +0000
Subject: [PATCH] fix(type): annotate event for nav (#761)
---
quartz/cfg.ts | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/quartz/cfg.ts b/quartz/cfg.ts
index e3fee36..153bbe2 100644
--- a/quartz/cfg.ts
+++ b/quartz/cfg.ts
@@ -1,3 +1,4 @@
+import { ValidDateType } from "./components/Date"
import { QuartzComponent } from "./components/types"
import { PluginTypes } from "./plugins/types"
import { Theme } from "./util/theme"
@@ -6,11 +7,16 @@
| null
| {
provider: "plausible"
+ host?: string
}
| {
provider: "google"
tagId: string
}
+ | {
+ provider: "umami"
+ websiteId: string
+ }
export interface GlobalConfiguration {
pageTitle: string
@@ -22,11 +28,19 @@
analytics: Analytics
/** Glob patterns to not search */
ignorePatterns: string[]
+ /** Whether to use created, modified, or published as the default type of date */
+ defaultDateType: ValidDateType
/** Base URL to use for CNAME files, sitemaps, and RSS feeds that require an absolute URL.
* Quartz will avoid using this as much as possible and use relative URLs most of the time
*/
baseUrl?: string
theme: Theme
+ /**
+ * The locale to use for date formatting. Default to "en-US"
+ * Allow to translate the date in the language of your choice.
+ * Need to be formated following the IETF language tag format (https://en.wikipedia.org/wiki/IETF_language_tag)
+ */
+ locale?: string
}
export interface QuartzConfig {
--
Gitblit v1.10.0