gethinode / hinode

A clean documentation and blog theme for your Hugo site based on Bootstrap 5
https://gethinode.com
MIT License
146 stars 52 forks source link

[BUG] Blog Posts After the Year 2022 Are Not Processed #143

Closed MicahBird closed 1 year ago

MicahBird commented 1 year ago

Describe the bug When creating a blog post that is after the year 2022, the site doesn't build a page for that post. However, no error is outputted to the logs, and this could also be my error.

To reproduce Steps to reproduce the behavior:

  1. Go to content/en/blog/
  2. Write a blog post with any year after the year 2022.
  3. Go to Blog or Tags page on website
  4. No page is listed for that post

Log file No error is outputted, only the following:

Change detected, rebuilding site.
2023-02-10 11:43:45.013 -0700
Source changed WRITE         "[REDACTED]/content/en/blog/2023/lorum-ipsum.md"
Total in 59 ms

Environment (please complete the following information):

This is an awesome project and Hugo theme, and I hope to make it better!

markdumay commented 1 year ago

Great to hear your like the theme. Looking at your example, it appears you would like to list content for a specific year. By design, Hinode lists all content within the same section, regardless of any subfolders. So the url /blog would list all blog posts. The order can be specified in the list configuration.

Pending on your intend, you might want to revise the permalink configuration. For example, you could add the following code to config/_default/config.toml:

[permalinks]
    blog = '/:year/:month/:title/'

If you still intend to create a subfolder 2023, you should make sure it is configured as a list page. Add a file _index.md to the 2023 folder, for example with the following content:

---
author: Mark Dumay
title: Blog
---

You would still need to create a custom list page template in layouts/_default though.

markdumay commented 1 year ago

I'm closing the issue for now, let me know if you'd like to reopen it.