From 5926d3f803606d86129ed658147e66986d15fba8 Mon Sep 17 00:00:00 2001
From: Peter <GitHub@Stather.me>
Date: Mon, 01 Jul 2024 04:12:48 +0000
Subject: [PATCH] docs: replace .gitlab-ci.yml example with more reliable and faster ci job (#1243)
---
quartz/plugins/transformers/frontmatter.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/quartz/plugins/transformers/frontmatter.ts b/quartz/plugins/transformers/frontmatter.ts
index 7073d43..5ab239a 100644
--- a/quartz/plugins/transformers/frontmatter.ts
+++ b/quartz/plugins/transformers/frontmatter.ts
@@ -57,9 +57,9 @@
},
})
- if (data.title) {
+ if (data.title != null && data.title.toString() !== "") {
data.title = data.title.toString()
- } else if (data.title === null || data.title === undefined) {
+ } else {
data.title = file.stem ?? i18n(cfg.configuration.locale).propertyDefaults.title
}
@@ -90,6 +90,7 @@
description: string
publish: boolean
draft: boolean
+ lang: string
enableToc: string
cssclasses: string[]
}>
--
Gitblit v1.10.0