Skip to content

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

@home-robot-ovmm

Description

@home-robot-ovmm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions