paulmassen / grav-theme-chalk

Port of the Jekyll's chalk theme to Grav CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to populate a blog_listing template page with post listings?

minnixtx opened this issue · comments

My site is a small tech blog using the Chalk theme. tech.minnix.dev. I've created an empty "project" page using the blog_listing template. My individual posts are using the post template and linked to the project page, but I don't get the post listing on the project page.
Uploading Screen Shot 2020-10-27 at 11.24.33 AM copy.jpg…
In the Chalk demo it looks like this http://chalk.paulmassendari.com/blog for the post listings where as mine is empty. You can still view individual pages on my blog via URL like this https://tech.minnix.dev/projects/tasmota-fcmila but there's nothing on the project page itself. Do I need to populate the blog_listing template page or something?

i too am having this issue with the pulled repo, did you fix the template?

Hi,

To display a list of articles, you just need to use the 'blog-listing' template, and set a page collection in the frontmatter.
Example:

content:
    items: '@self.children'
    order:
        by: date
        dir: desc
    limit: 10
    pagination: true