diff --git a/settings.yaml b/settings.yaml
index 9b05460..6e1eb59 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -176,6 +176,13 @@ spec:
placeholder: "calc(var(--size-theme-font) * 1.5625)"
help: 控制文章正文段落的上下间距, 例如 1.5rem / 24px / calc(var(--size-theme-font) * 1.5), 留空使用主题默认值
+ - $formkit: text
+ label: 文章元信息分隔符
+ name: post_meta_divider
+ value:
+ placeholder: "::"
+ help: 控制文章时间、作者和标签等元信息之间的分隔符, 例如 :: / | / ·, 留空使用主题默认值
+
- $formkit: checkbox
label: 使用系统字体
name: system_font_enable
diff --git a/src/styles/main.scss b/src/styles/main.scss
index 1269ea7..aeb1b0e 100644
--- a/src/styles/main.scss
+++ b/src/styles/main.scss
@@ -3,6 +3,7 @@
:root {
--text-decoration-theme-link: none;
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
+ --content-theme-post-meta-divider: "::";
--list-theme-marker: "►";
--size-theme-font: 1rem;
--height-theme-line: calc(var(--size-theme-font) * 1.75);
diff --git a/src/styles/post.scss b/src/styles/post.scss
index 7c3f786..0aa8183 100644
--- a/src/styles/post.scss
+++ b/src/styles/post.scss
@@ -34,7 +34,7 @@
}
.post-meta > *:not(:first-child):not(:empty)::before {
- content: "::";
+ content: var(--content-theme-post-meta-divider);
color: var(--color-theme-meta);
display: inline-block;
margin-right: 1ch;
diff --git a/templates/modules/layout.html b/templates/modules/layout.html
index 67bf17a..4951d29 100644
--- a/templates/modules/layout.html
+++ b/templates/modules/layout.html
@@ -33,6 +33,11 @@
--spacing-theme-post-paragraph: [(${theme.config.style.post_paragraph_spacing})];
}
+