diff --git a/src/blog/themes/blog/layout/_partial/archive.ejs b/src/blog/themes/blog/layout/_partial/archive.ejs index f6cd056..24c48de 100644 --- a/src/blog/themes/blog/layout/_partial/archive.ejs +++ b/src/blog/themes/blog/layout/_partial/archive.ejs @@ -1,6 +1,6 @@ <% if (pagination == 2){ %> <% page.posts.each(function(post){ %> - <%- partial('article', {post: post, index: true}) %> + <%- partial('article-preview', {post: post, index: true}) %> <% }) %> <% } else { %> <% var last; %> @@ -17,7 +17,7 @@
<% } %> - <%- partial('article', {post: post, index: true}) %> + <%- partial('article-preview', {post: post, index: true}) %> <% }) %> <% if (page.posts.length){ %>
diff --git a/src/blog/themes/blog/layout/_partial/article-preview.ejs b/src/blog/themes/blog/layout/_partial/article-preview.ejs new file mode 100644 index 0000000..0df71c9 --- /dev/null +++ b/src/blog/themes/blog/layout/_partial/article-preview.ejs @@ -0,0 +1,45 @@ +
+
+ <%- partial('post/gallery') %> + <% if (post.link || post.title){ %> +
+ <%- partial('post/title', {class_name: 'article-title'}) %> +
+ <% } %> + +
+ <% if (post.excerpt && index){ %> + <%- post.excerpt %> + <% if (theme.excerpt_link){ %> +

+ <%= theme.excerpt_link %> +

+ <% } %> + <% } else { %> + <%- post.content %> + <% } %> +
+
+
+ + + +<% if (!index){ %> + <%- partial('post/nav') %> +<% } %> + +<% if (!index && post.comments && config.disqus_shortname){ %> +
+
+ +
+
+<% } %> diff --git a/src/blog/themes/blog/layout/_partial/article.ejs b/src/blog/themes/blog/layout/_partial/article.ejs index 0df71c9..6862498 100644 --- a/src/blog/themes/blog/layout/_partial/article.ejs +++ b/src/blog/themes/blog/layout/_partial/article.ejs @@ -1,15 +1,9 @@ -
+
<%- partial('post/gallery') %> <% if (post.link || post.title){ %> -
- <%- partial('post/title', {class_name: 'article-title'}) %> -
+

<%= post.title %>

<% } %> -
<% if (post.excerpt && index){ %> <%- post.excerpt %> @@ -25,6 +19,21 @@
+<% if (!index){ %> + <%- partial('post/nav') %> +<% } %> + +
+
+ avatar + +
+ <%- partial('post/category') %> +
+ -<% if (!index){ %> - <%- partial('post/nav') %> -<% } %> - <% if (!index && post.comments && config.disqus_shortname){ %>
diff --git a/src/scss/_drawing.scss b/src/scss/_drawing.scss index df87107..10f9817 100644 --- a/src/scss/_drawing.scss +++ b/src/scss/_drawing.scss @@ -67,7 +67,7 @@ a.article-nav-link-wrap { } } -.pigimg { +.pigimg, .mb { padding-bottom:1.5rem; }