From c1e7e2884083234b60921adfb44c365d45acd80a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 23 Mar 2020 18:02:51 +0100 Subject: [PATCH] fix(blog): clean up the layout --- .../themes/blog/layout/_partial/article.ejs | 23 ++++++----- .../blog/layout/_partial/post/category.ejs | 4 +- .../themes/blog/layout/_partial/post/date.ejs | 4 +- .../themes/blog/layout/_partial/post/nav.ejs | 40 +++++++++---------- .../themes/blog/layout/_widget/archive.ejs | 4 +- .../themes/blog/layout/_widget/category.ejs | 2 +- .../blog/layout/_widget/recent_posts.ejs | 2 +- src/blog/themes/blog/layout/_widget/tag.ejs | 2 +- .../themes/blog/layout/_widget/tagcloud.ejs | 2 +- 9 files changed, 41 insertions(+), 42 deletions(-) diff --git a/src/blog/themes/blog/layout/_partial/article.ejs b/src/blog/themes/blog/layout/_partial/article.ejs index 71ce27f..0df71c9 100644 --- a/src/blog/themes/blog/layout/_partial/article.ejs +++ b/src/blog/themes/blog/layout/_partial/article.ejs @@ -7,8 +7,8 @@ <% } %>
- <%- partial('post/date', {class_name: 'article-date', date_format: null}) %> <%- partial('post/category') %> + <%- partial('post/date', {class_name: 'article-date', date_format: null}) %>
<% if (post.excerpt && index){ %> @@ -22,19 +22,20 @@ <%- post.content %> <% } %>
- - <% if (!index){ %> - <%- partial('post/nav') %> - <% } %> + + +<% if (!index){ %> + <%- partial('post/nav') %> +<% } %> + <% if (!index && post.comments && config.disqus_shortname){ %>
diff --git a/src/blog/themes/blog/layout/_partial/post/category.ejs b/src/blog/themes/blog/layout/_partial/post/category.ejs index db2ed48..02b94d6 100644 --- a/src/blog/themes/blog/layout/_partial/post/category.ejs +++ b/src/blog/themes/blog/layout/_partial/post/category.ejs @@ -4,7 +4,7 @@ show_count: false, class: 'article-category', style: 'none', - separator: '►' + separator: '' }) %>
-<% } %> \ No newline at end of file +<% } %> diff --git a/src/blog/themes/blog/layout/_partial/post/date.ejs b/src/blog/themes/blog/layout/_partial/post/date.ejs index 3f49613..750f355 100644 --- a/src/blog/themes/blog/layout/_partial/post/date.ejs +++ b/src/blog/themes/blog/layout/_partial/post/date.ejs @@ -1,3 +1 @@ - - - \ No newline at end of file + diff --git a/src/blog/themes/blog/layout/_partial/post/nav.ejs b/src/blog/themes/blog/layout/_partial/post/nav.ejs index 720798a..0016894 100644 --- a/src/blog/themes/blog/layout/_partial/post/nav.ejs +++ b/src/blog/themes/blog/layout/_partial/post/nav.ejs @@ -1,22 +1,22 @@ <% if (post.prev || post.next){ %> -