<%= post.title %>
<% if (post.summary && post.summary.length > 0) { %> <%- post.summary %> <% } else { %> <%- strip_html(post.content).substring(0, 70) %> <% } %>
<%- __('readMore') %>% // get all top posts. var topPosts = []; if (theme.recommend.useConfig) { topPosts = site.data.recommends; } else { site.posts.forEach(function (post) { if (post.top) { topPosts.push(post); } }); } var topPostsCount = topPosts.length; %> <% if (topPostsCount > 0) { %> <% var hashCode = function (str) { if (!str && str.length === 0) { return 0; } var hash = 0; for (var i = 0, len = str.length; i < len; i++) { hash = ((hash << 5) - hash) + str.charCodeAt(i); hash |= 0; } return hash; }; var featureImages = theme.featureImages; var imgCount = featureImages.length; var bgColorArr = [ 'linear-gradient(to right, #FF5E3A 0%, #FF2A68 100%)', 'linear-gradient(to right, #EF4DB6 0%, #C643FC 100%)', 'linear-gradient(to right, #1AD6FD 0%, #1D62F0 100%)', 'linear-gradient(to right, #FFCC00 0%, #FF9500 100%)', 'linear-gradient(to right, #4cbf30 0%, #0f9d58 100%)', 'linear-gradient(to right, #C644FC 0%, #5856D6 100%)', 'linear-gradient(to right, #55EFCB 0%, #5BCAFF 100%)']; var colorCount = bgColorArr.length; %> <% if (theme.recommend.showTitle) { %>
<% if (post.summary && post.summary.length > 0) { %> <%- post.summary %> <% } else { %> <%- strip_html(post.content).substring(0, 70) %> <% } %>
<%- __('readMore') %><%= description %>
<%- __('readMore') %>