diff --git a/themes/typing/layout/_partial/after-footer.ejs b/themes/typing/layout/_partial/after-footer.ejs index 0ddb5dc..2013399 100644 --- a/themes/typing/layout/_partial/after-footer.ejs +++ b/themes/typing/layout/_partial/after-footer.ejs @@ -7,7 +7,7 @@ -<% if (theme.fancybox){ %> +<% if (theme.fancybox) { %> @@ -15,9 +15,9 @@ <%/* Initialize cloudinary responsive function */%> <%/* javascript of Typing theme */%> -<%- js('js/typing') %> \ No newline at end of file +<%- js('js/typing') %> diff --git a/themes/typing/layout/_partial/archive.ejs b/themes/typing/layout/_partial/archive.ejs index e2d866f..bb322ab 100644 --- a/themes/typing/layout/_partial/archive.ejs +++ b/themes/typing/layout/_partial/archive.ejs @@ -1,28 +1,31 @@ -<% if (pagination == 2){ %> - <% page.posts.each(function(post){ %> +<% if (pagination === 2) { %> + <% page.posts.each(function(post) { %> <%- partial('article', {post: post, index: true}) %> <% }) %> <% } else { %> - <% var last; %> - <% page.posts.each(function(post, i){ %> - <% var year = post.date.year(); %> - <% if (last != year){ %> - <% if (last != null){ %> + <% let last %> + <% page.posts.each(function(post, i) { %> + <% const year = post.date.year() %> + <% if (last !== year) { %> + <% if (last !== null) { %> <% } %> - <% last = year; %> + <% last = year %>
<% } %> - <%- partial('archive-post', {post: post, even: i % 2 == 0}) %> + <%- partial('archive-post', {post: post, even: i % 2 === 0}) %> <% }) %> - <% if (page.posts.length){ %> + <% if (page.posts.length) { %>
<% } %> <% } %> -<% if (page.total > 1){ %> +<% if (page.total > 1) { %>