ahmadajmi / type

🎉 Minimal and Clean Free Jekyll Theme
https://type-jekyll.aspirethemes.com/
MIT License
213 stars 141 forks source link

How to create an alternate blog (listing) page #18

Open home-robot-ovmm opened 4 years ago

home-robot-ovmm commented 4 years ago

Thank you for this beautiful template.

I am trying to create another page (that can be accessed from the sidebar) that also has a list view of the posts (I want to create a page with a list of podcast episodes, apart from the blog posts).

To start with, I tried to replicate the home page (blog list page), but was unable to do so.

I created a page named podcast.md in the _pages directory, and used the following code -

---
layout: default
title: Podcast
---

<div class='o-wrapper'>
  <div class='o-grid'>
    {% for post in paginator.posts %}
      {% include post-card.liquid %}
    {% endfor %}
  </div>

  <div class='o-grid'>
    {% include pagination.html %}
  </div>
</div>

But the rendered page (accessed from the sidebar) is empty.

Could someone please help me with what I am doing wrong?

Thank you