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

Zero-length HTML files created in public (regression from 0.19) #3355

Closed
jgreely opened this Issue Apr 17, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@jgreely

jgreely commented Apr 17, 2017

When I ported my large MovableType blog to Hugo, I handled the blogroll and microblogs as sections, suppressing the generation of single pages by creating zero-length files (blogroll/single.html, etc), and pulled in all the old comments by making them a section _comment that was visible only through the "comments" taxonomy, with zero-length _comment/single.html and section/_comment.html files.

In 0.19 (Mac), no files were created in public from these templates. In 0.20 - 0.20.2, I get 4,417 zero-length HTML files. I can write a cleanup script, but unless there's a cleaner way to suppress these pages in 0.20, I'd prefer the old behavior.

@bep bep added the Bug label Apr 17, 2017

@bep bep added this to the v0.21 milestone Apr 17, 2017

@thylong

This comment has been minimized.

Show comment
Hide comment
@thylong

thylong Apr 17, 2017

I face the same issue. I rolled back to 0.19 for now

thylong commented Apr 17, 2017

I face the same issue. I rolled back to 0.19 for now

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Apr 18, 2017

Member

Please don't "me too" on issues.

Member

bep commented Apr 18, 2017

Please don't "me too" on issues.

@gohugoio gohugoio locked and limited conversation to collaborators Apr 18, 2017

@bep bep modified the milestones: v0.20.3, v0.21 Apr 18, 2017

@bep bep closed this in #3378 Apr 23, 2017

dmerejkowsky pushed a commit to dmerejkowsky/hugo that referenced this issue Dec 3, 2017

hugolib: Fix handling of zero-length files
This was a regression in Hugo 0.20. This commit makes sure that zeron-length files are not rendered to file.

Fixes gohugoio#3355
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.