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

[Bug] Requires at least two episodes to render site with row layout #153

Open
rajeshduggal opened this issue Mar 3, 2018 · 3 comments
Open
Labels

Comments

@rajeshduggal
Copy link
Contributor

Expected behavior

Should be able to render the site with less than two episodes.

Actual behavior

With less than two episodes rendering fails with an error message in themes/partials/row.html:112

Reproduction Steps

Starting from scratch, work through hugo quickstart getting started. Install castanet theme, run hugo server -D. Notice the error. Run "hugo new episode/myepisode.md". Notice the error in the server output. Run "hugo new episode/myepisode2.md". Notice the website now renders.

Operating System and Version

Windows 7 (cygwin)

Web Browser and Version

n/a

Hugo Version

hugo v.0.36..1

@mattstratton
Copy link
Owner

Good catch. I'll have to add some catch logic to not try to display the remaining episodes.

@rajeshduggal
Copy link
Contributor Author

I found the bug while building our podcast http://khabardaarpodcast.com/ Fortunately, we decided to launch with an episode zero teaser at the same time as our episode one. (i.e. two episodes at launch). So we jumped over the hurdle. But, a fix will be needed for anyone else that wants to start using the theme.

@lmkirvan
Copy link

Only fails with row layout, just FYI.

@mattstratton mattstratton changed the title [Bug] Requires at least two episodes to render site [Bug] Requires at least two episodes to render site with row layout Nov 25, 2019
@mattstratton mattstratton moved this to Backlog in Castanet 2.0 Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

3 participants