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

The pages dated year 2022 are not displayed. any workaround? #61

Open
desardavaishali opened this issue May 22, 2022 · 2 comments
Open

Comments

@desardavaishali
Copy link

I have a few pages in the blog section dated 2021. They all display correctly.
I want to add a new page dated the year 2022. This page is not listed in the blog section. If I change the year to 2021, it displays.
Any workaround for displaying 2022 pages?

@Ravinou
Copy link
Contributor

Ravinou commented May 23, 2022

Hi, can you give more information (URL, version of Hugo, example of header in your markdown...) ? Because I don't have this issue...

@chris-gillatt
Copy link

chris-gillatt commented Oct 4, 2022

@desardavaishali I believe what's happened here is that you've got your post date in the future. At the top of the page, if your metadata is set to a date after today, the page will not show.

For instance, this page will show:

---
author: "Chris Gillatt"
title: "Test Page"
date: 2022-09-04
description: "description text"
tags: ["tag1"]
thumbnail: ""
---
~Content

Whereas this one below will not (notice the date)

---
author: "Chris Gillatt"
title: "Test Page"
date: 2023-09-04
description: "description text"
tags: ["tag1"]
thumbnail: ""
---
~Content

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

3 participants