Skip to content

Commit

Permalink
#13 标签
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Aug 13, 2021
1 parent 58dc8e8 commit 2316151
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<!--<script src="" async></script>-->` # 在 <head></head> 中添加自定义的内容
head: '<!--<script src="" async></script>-->' # 在 <head></head> 中添加自定义的内容

menu:
归档: archives
Expand Down
5 changes: 5 additions & 0 deletions layout/archive.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
</div>
<div class="container">
<article class="post">
<%- 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) { %>
<h2><%= year %></h2>
Expand Down
10 changes: 6 additions & 4 deletions layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
<%- page.content %>
</article>
</div>
<div class="other">
<div class="container">
<%- is_post() ? partial('_partial/post-nav') : '' %>
<% if(is_post()){ %>
<div class="other">
<div class="container">
<%- partial('_partial/post-nav') %>
</div>
</div>
</div>
<% } %>
<div class="container comment">
<%- theme.comment ? partial('_partial/_comment/' + theme.comment) : '' %>
</div>
Expand Down
16 changes: 15 additions & 1 deletion source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand All @@ -367,6 +380,7 @@ article p {

article a {
color: #aa874b;
word-break: break-all;
}

article > table {
Expand Down

0 comments on commit 2316151

Please sign in to comment.