diff --git a/themes/grid/layout/partial/post/list.ejs b/themes/grid/layout/partial/post/list.ejs index fc2a428..f92cb5c 100644 --- a/themes/grid/layout/partial/post/list.ejs +++ b/themes/grid/layout/partial/post/list.ejs @@ -1,35 +1,42 @@ <% page.posts.sort("date", "desc" ).each(function(post, i) { %> -
-
-

- <%= post.title %> -

-
-
最后更新:<%= date(post.date, "YYYY-MM-DD HH:mm") %>
- <% if (post.categories.length > 0) { %> -
知识分类: - <%- list_categories(post.categories, { - class: { a: 'uk-link-muted' }, - show_count: false, - style: false, - separator: ' / ' - }) %> +
+
+

+ + <%= post.title %> + +

+
+
最后更新:<%= date(post.date, "YYYY-MM-DD HH:mm" ) %> +
+ <% if (post.categories.length> 0) { %> +
知识分类: + <%- list_categories(post.categories, { + class: { a: 'uk-link-muted' }, + show_count: false, + style: false, + separator: ' / ' + }) %> +
+ <% } %> +
+
+ <% if (post.excerpt) { %> +
+ <%- post.excerpt %>
<% } %> -
+ <% if (post.tags.length> 0) { %> + + <% } %>
- <% if (post.excerpt) { %> -
- <%- post.excerpt %> -
- <% } %> - <% if (post.tags.length > 0) { %> - - <% } %> -
-<% }) %> + <% }) %> \ No newline at end of file diff --git a/themes/grid/layout/post.ejs b/themes/grid/layout/post.ejs index d9b1180..1a99da3 100644 --- a/themes/grid/layout/post.ejs +++ b/themes/grid/layout/post.ejs @@ -4,36 +4,43 @@

- <%= page.title %> + + <%= page.title %> +

-
最后更新:<%= date(page.date, "YYYY-MM-DD HH:mm") %>
- <% if (page.categories.length > 0) { %> -
知识分类: - <%- list_categories(page.categories, { - class: { a: 'uk-link-muted' }, - show_count: false, - style: false, - separator: ' / ' - }) %> +
最后更新:<%= date(page.date, "YYYY-MM-DD HH:mm" ) %>
- <% } %> + <% if (page.categories.length> 0) { %> +
知识分类: + <%- list_categories(page.categories, { + class: { a: 'uk-link-muted' }, + show_count: false, + style: false, + separator: ' / ' + }) %> +
+ <% } %>
<%- page.content %>
- <% if (page.tags.length > 0) { %> - - <% } %> + <% if (page.tags.length> 0) { %> + + <% } %>
- <%- partial('partial/side', {'noCategories': false, 'noTags': false}) %> + <%- partial('partial/side', {'noCategories': false, 'noTags' : false}) %>
-
+
\ No newline at end of file diff --git a/themes/grid/source/css/style.less b/themes/grid/source/css/style.less index bf5d3ff..12ca201 100644 --- a/themes/grid/source/css/style.less +++ b/themes/grid/source/css/style.less @@ -23,6 +23,9 @@ footer { justify-content: center; align-items: center; } +.tag-title { + min-width: 100px; +} .category-list, .category-list-child { padding-left: 8px; list-style-position: inside;