J1X BLOG

Technical writings by James Peret

<% var i = 0 %> <% order_posts(site.posts).forEach(function(page) { %> <% i += 1 %> <% if(i == 1) { %> <% var data = { post: page, size: 12, image: `/images/hero/blog/${page.image.feature}` }%> <%- partial('_partial/content-card', data) %> <% } else if (i == 2 || i == 3) { %> <% var data = { post: page, size: 6, image: `/images/thumbnails/blog/${page.image.feature}` }%> <%- partial('_partial/content-card', data) %> <% } else { %> <% var data = {post: page, size: 4, image: `/images/thumbnails/blog/${page.image.feature}` }%> <%- partial('_partial/content-card', data) %> <% } %> <% }) %>
<%- partial('_partial/about-author') %> <%- partial('_partial/contact-form') %>