diff --git a/_config.yml b/_config.yml index e15fb245c301adbe79a5235a5e4c3ef22e8389d1..e210d2f84d878d6c7a86b7f8ffb9ab38309eae0c 100644 --- a/_config.yml +++ b/_config.yml @@ -3,7 +3,7 @@ favicon: type: image/x-icon # 图标类型,可能的值有(image/png, image/vnd.microsoft.icon, image/x-icon, image/gif) search: https://cn.bing.com/search?q= # https://www.google.com/search?q== order_by: date # date,-date,title,url,... -head: `` # 在 中添加自定义的内容 +head: '' # 在 中添加自定义的内容 menu: 归档: archives diff --git a/layout/archive.ejs b/layout/archive.ejs index 725215b8f3885392d52ed2426285a86d2e582746..830ab9cbe4fd4c6b0563520298e89305e9efd486 100644 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -6,6 +6,11 @@
+ <%- list_tags({ + show_count: true, + style: "unordered list", + separator: ", " + }) %> <% // 参考:https://github.com/SukkaW/hexo-theme-suka/blob/master/layout/_pages/archive.ejs %> <% function buildArchive(posts, year) { %>

<%= year %>

diff --git a/layout/post.ejs b/layout/post.ejs index fe03a7ec85407fe8911307ac04da942cffee08ce..1abce1dc6ba42e1362b0a7541688d291c71f6140 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -20,11 +20,13 @@ <%- page.content %>
-
-
- <%- is_post() ? partial('_partial/post-nav') : '' %> + <% if(is_post()){ %> +
+
+ <%- partial('_partial/post-nav') %> +
-
+ <% } %>
<%- theme.comment ? partial('_partial/_comment/' + theme.comment) : '' %>
diff --git a/source/css/style.css b/source/css/style.css index c2172d39cf4b16436e279950ad5ce03b0987e2a7..fc1e741f830cf7737008a76d395cf1b2404bcbb2 100644 --- a/source/css/style.css +++ b/source/css/style.css @@ -278,7 +278,7 @@ a:hover { width: 100%; display: flex; justify-content: space-between; - flex-flow:row-reverse + flex-flow: row-reverse } .content .post-nav span { @@ -347,6 +347,19 @@ a:hover { position: relative; } +.content .tag-unordered { + word-break: break-word; +} + +.content .tag-unordered .list-count::before { + content: "(" +} + +.content .tag-unordered .list-count::after { + content: ")" +} + + .comment { padding: 3em 1em; } @@ -367,6 +380,7 @@ article p { article a { color: #aa874b; + word-break: break-all; } article > table {