Skip to content

Commit

Permalink
feat: 允许在引用块后添加引号
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHz committed Dec 14, 2024
1 parent bcca662 commit 707e1f6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
9. 允许设定是否强制页脚在页面最底部
10. 允许关闭页面底部菜单
11. 允许添加内容到页脚最底部
12. 允许在引用块后添加引号(引用块在 Markdown 中使用 > 表示)

#### 增加于“首页样式”

Expand Down
10 changes: 10 additions & 0 deletions i18n-settings/settings.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ spec:
label: Footer content at the bottom (support html code block)
language: html
height: 150px
- $formkit: radio
name: is_show_the_quote_after_blockquote
label: Show the quote after Blockquote
value: true
options:
- label: Enable
value: true
- label: Disable
value: false
help: "If enabled, the theme will display the quote after the blockquote. In Markdown, you can use the > symbol to create a blockquote."
- group: index_styles
label: Home page style
formSchema:
Expand Down
10 changes: 10 additions & 0 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ spec:
label: 页脚最底部内容(支持 html 代码块)
language: html
height: 150px
- $formkit: radio
name: is_show_the_quote_after_blockquote
label: 引用块后添加引号
value: true
options:
- label: 开启
value: true
- label: 关闭
value: false
help: 如启用此项,将在引用块后添加引号。引用块在 Markdown 中使用 > 表示。
- group: index_styles
label: 首页样式
formSchema:
Expand Down
12 changes: 12 additions & 0 deletions templates/fragments/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,18 @@
/*[(${theme.config?.styles?.content_width_style})]*/ fit-content;
}
</style>
<style th:inline="css" th:if="${theme.config?.styles?.is_show_the_quote_after_blockquote}">
article .content blockquote:after {
float: right;
margin-top: 0.4em;
margin-left: 0.25em;
color: var(--color-quote);
content: "\201D";
vertical-align: 0.4em;
font-size: 2em;
line-height: 0.1em;
}
</style>
<div class="max-width min-width mx-auto px-8 ltr content-width">
<th:block th:replace="${navbar}" />

Expand Down

0 comments on commit 707e1f6

Please sign in to comment.