Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
home-robot-ovmm opened this issue Jun 22, 2020 · 0 comments
Open

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

home-robot-ovmm opened this issue Jun 22, 2020 · 0 comments

Comments

@home-robot-ovmm
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant