## url = "/blog" layout = "blog" title = "Blog Homepage" [collection blog] handle = "Blog\Post" [global blogConfig] handle = "Blog\Config" [resources] vars[activeNavLink] = 'blog' == {% set posts = blog.paginate(5) %} {% set archiveDates = blog .selectRaw("count(*) as post_count, published_at_month, published_at_year") .groupBy('published_at_month', 'published_at_year').get() %} {% put pageTitle = blogConfig.blog_name ?: 'Blog' %} {% for post in posts %} {% partial 'blog/post-card' post=post bannerCss='banner-lg' %} {% endfor %}