- <%- post.content %>
-
- <% if(post.layout == 'post'){ %>
- -
- <% if(!page.meta || page.meta.updated != false){ %>
-
+ <%- partial('meta', {post: post, position: 'header'}) %>
+
+
- <% } %>
-
- <% if(post.prev || post.next){ %>
-
+ <%} %>
+
+ <%- post.content %>
+
+ <% if(post.layout == 'post'){ %>
+ <%- partial('meta', {post: post, position: 'footer'}) %>
+ <% } %>
+ <% if(post.prev || post.next){ %>
+
+ <% if(post.prev){ %>
+
+
+
<% } %>
- <% if (post.tags && post.tags.length && (!page.meta || page.meta.tags != false)) { %>
- <%
- var items = [];
- post.tags.each(function(item){
- items.push('');
- });
- %>
- <%- items.join(' ') %>
- <% } %>
- <% if (theme.share && (!page.meta || page.meta.share != false)) { %>
- <%- partial('../_third-party/share') %>
- <% } %>
-
- <%- __('post.prev_page') %>
++ + <% if(post.prev.title){ %> + <%= post.prev.title %> + <% } else if (post.prev.date) { %> + <%= date(post.prev.date, config.date_format) %> + <% } %> + +
+ <% if (post.prev.tags && post.prev.tags.length && post.prev.tags.each) { %> + <% + var items = []; + post.prev.tags.each(function(item){ + items.push('' + item.name + ''); + }); + %> ++ <%- items.join(' ') %> +
+ <% } %> + +
- <% if(post.prev){ %>
-
-
-
-
- <% if(post.prev.title){ %>
- <%= post.prev.title %>
- <% } else if (post.prev.date) { %>
- <%= date(post.prev.date, config.date_format) %>
+ <% if(post.next){ %>
+
- <%} %>
-
-
+
+
+ <% if (post.next.tags && post.next.tags.length && post.next.tags.each) { %>
+ <%
+ var items = [];
+ post.next.tags.each(function(item){
+ items.push('' + item.name + '');
+ });
+ %>
+