diff --git a/layout/_partial/feed.ejs b/layout/_partial/feed.ejs index b2327a6..4e18264 100644 --- a/layout/_partial/feed.ejs +++ b/layout/_partial/feed.ejs @@ -1,31 +1,12 @@ -<% columns = theme.column; %> -
-
- <% item.forEach(function(post, index) { %> - <% if (index % columns === 0) { %> - <%- include('post_feed', { post: post }) %> - <% } %> - <% }); %> -
-
- <% item.forEach(function(post, index) { %> - <% if (index % columns === 1) { %> - <%- include('post_feed', { post: post }) %> - <% } %> - <% }); %> -
- - <% if (columns === 3) { %> -
- <% item.forEach(function(post, index) { %> - <% if (index % columns === 2) { %> - <%- include('post_feed', { post: post }) %> - <% } %> - <% }); %> -
- <% } %> +
+ <% page.posts.forEach(function(post) { %> + <%- include('post_feed', { post: post }) %> + <% }); %>
-