feat: add meta divider custom
This commit is contained in:
@@ -176,6 +176,13 @@ spec:
|
|||||||
placeholder: "calc(var(--size-theme-font) * 1.5625)"
|
placeholder: "calc(var(--size-theme-font) * 1.5625)"
|
||||||
help: 控制文章正文段落的上下间距, 例如 1.5rem / 24px / calc(var(--size-theme-font) * 1.5), 留空使用主题默认值
|
help: 控制文章正文段落的上下间距, 例如 1.5rem / 24px / calc(var(--size-theme-font) * 1.5), 留空使用主题默认值
|
||||||
|
|
||||||
|
- $formkit: text
|
||||||
|
label: 文章元信息分隔符
|
||||||
|
name: post_meta_divider
|
||||||
|
value:
|
||||||
|
placeholder: "::"
|
||||||
|
help: 控制文章时间、作者和标签等元信息之间的分隔符, 例如 :: / | / ·, 留空使用主题默认值
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--text-decoration-theme-link: none;
|
--text-decoration-theme-link: none;
|
||||||
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
|
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
|
||||||
|
--content-theme-post-meta-divider: "::";
|
||||||
--list-theme-marker: "►";
|
--list-theme-marker: "►";
|
||||||
--size-theme-font: 1rem;
|
--size-theme-font: 1rem;
|
||||||
--height-theme-line: calc(var(--size-theme-font) * 1.75);
|
--height-theme-line: calc(var(--size-theme-font) * 1.75);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-meta > *:not(:first-child):not(:empty)::before {
|
.post-meta > *:not(:first-child):not(:empty)::before {
|
||||||
content: "::";
|
content: var(--content-theme-post-meta-divider);
|
||||||
color: var(--color-theme-meta);
|
color: var(--color-theme-meta);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 1ch;
|
margin-right: 1ch;
|
||||||
|
|||||||
@@ -33,6 +33,11 @@
|
|||||||
--spacing-theme-post-paragraph: [(${theme.config.style.post_paragraph_spacing})];
|
--spacing-theme-post-paragraph: [(${theme.config.style.post_paragraph_spacing})];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.post_meta_divider)}" th:inline="css">
|
||||||
|
:root {
|
||||||
|
--content-theme-post-meta-divider: "[(${theme.config.style.post_meta_divider})]";
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.content_padding)}" th:inline="css">
|
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.content_padding)}" th:inline="css">
|
||||||
:root {
|
:root {
|
||||||
--spacing-theme-container-padding: [(${theme.config.style.content_padding})];
|
--spacing-theme-container-padding: [(${theme.config.style.content_padding})];
|
||||||
|
|||||||
Reference in New Issue
Block a user