Files
reference/themes/coo/layout/_partial/post/recent.ejs
T
2022-11-16 14:10:09 +08:00

7 lines
398 B
Plaintext

<h2 class="my-6 text-xl text-slate-700 dark:text-slate-300">Recent <span class="text-slate-400">Cheatsheet</span></h2>
<section class="w-full grid grid-cols-2 gap-2 md:gap-4">
<% site.posts.sort('date', -1).filter(post => post.layout !== "note").limit(theme.recent_posts_limits).each(function(post){ %>
<%- partial('_partial/post/popular_card', {post: post}) %>
<% }) %>
</section>