Skip to content

Commit

Permalink
chore: optional wavy when estimating word count
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed Feb 1, 2023
1 parent d03bdf3 commit 3300408
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Kratos-Rebirth-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ label:
- **list** : 友链列表,您可以参照提供的样例进行对应的复制修改,每一项可以提供显示的名字(name)、简介(bio)、头像链接(avatar)和目标站点链接(link),无用项建议留空(而不是直接删除)
- **verify** : 是否在每次启动时验证友联的可访问性

### - Misc 杂项

- **showWordCountEstimateWavy** : 在文章字数处显示表示大约字数的波浪号

-----

## 文章页面
Expand Down
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,7 @@ friends:
# avatar: "../images/avatar.webp"
# link: "https://candinya.com"
verify: true # 验证每个友链的可访问性,炸了会有提示

# Misc 杂项
misc:
showWordCountEstimateWavy: true # 在文章字数处显示表示大约字数的波浪号
2 changes: 1 addition & 1 deletion layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<% if (wordsCount < 1500) { %>
<%= wordsCount %>
<% } else { %>
~<%= (wordsCount / 1000).toFixed(2) %>K
<% if (theme.misc.showWordCountEstimateWavy) { %>~<% } %><%= (wordsCount / 1000).toFixed(2) %>K
<% } %>
<%- __('words') %>
</li>
Expand Down

0 comments on commit 3300408

Please sign in to comment.