+
<%- __('post.read_more') %>
diff --git a/layout/category.ejs b/layout/category.ejs
index fc1ea2a..8917499 100755
--- a/layout/category.ejs
+++ b/layout/category.ejs
@@ -8,9 +8,8 @@
-
<%- page.title %>
-
+
<% if (site.categories.length){ %>
<% site.categories.sort('path').each(function(category){ %>
diff --git a/layout/tag.ejs b/layout/tag.ejs
index f928c1a..9fd1ba4 100755
--- a/layout/tag.ejs
+++ b/layout/tag.ejs
@@ -1,5 +1,5 @@
<% page.comments = false; %>
-
+
'>
<% if (site.posts && site.posts.length > 0) { %>
<% if (page.layout == 'tag') { %>
@@ -8,21 +8,20 @@
-
<%- page.title %>
-
- <% if (site.tags.length){ %>
- <% site.tags.sort('path').each(function(tags){ %>
- <% if (tags.posts.length){ %>
-
-
-
- (<%- tags.posts.length %>)
-
-
- <% } %>
- <% }) %>
- <% } %>
+
<%- page.content %> diff --git a/source/less/_archive.less b/source/less/_archive.less index f1ddc84..7cd9221 100755 --- a/source/less/_archive.less +++ b/source/less/_archive.less @@ -73,5 +73,22 @@ } } } + + .all-tags { + display: flex; + flex-wrap: wrap; + align-items: flex-start; + justify-content: flex-start; + align-items: baseline; + word-spacing: @gap/2; + text-align: center; + a { + color: fade(@color_text_main, 80%); + margin-right: @gap; + &:hover,&:active,&.active{ + color: @color_text_highlight; + } + } + } } }
+ <% theme.sidebar.forEach(function(item){ %>
+ <% let widget_name = item.widget ? item.widget : 'plain'; %>
+ <% if (item.enable != false && widget_name == 'tagcloud'){ %>
+ <%- tagcloud(site.tags, {
+ min_font: 16,
+ max_font: 32,
+ color: false,
+ start_color: item.start_color ? item.start_color : '#999',
+ end_color: item.end_color ? item.end_color : '#666',
+ }) %>
+ <% } %>
+ <% }) %>
<%- page.content %> diff --git a/source/less/_archive.less b/source/less/_archive.less index f1ddc84..7cd9221 100755 --- a/source/less/_archive.less +++ b/source/less/_archive.less @@ -73,5 +73,22 @@ } } } + + .all-tags { + display: flex; + flex-wrap: wrap; + align-items: flex-start; + justify-content: flex-start; + align-items: baseline; + word-spacing: @gap/2; + text-align: center; + a { + color: fade(@color_text_main, 80%); + margin-right: @gap; + &:hover,&:active,&.active{ + color: @color_text_highlight; + } + } + } } }