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

Pages duplicated when editing config.toml #1840

Closed
derekperkins opened this issue Feb 11, 2016 · 4 comments
Closed

Pages duplicated when editing config.toml #1840

derekperkins opened this issue Feb 11, 2016 · 4 comments
Assignees
Milestone

Comments

@derekperkins
Copy link
Contributor

When running hugo server --watch, all my pages get duplicated when I edit config.toml. Notice below how the total pages created goes from 4 to 8 to 12. None of the taxonomy pages are duplicated though.

Change detected, rebuilding site
2016-02-11 02:47 -0700
Template changed /Users/derek/github/website/themes/nozzle/layouts/partials/taxonomies/personas.html
0 draft content
0 future content
4 pages created
0 non-page files copied
0 paginator pages created
2 tags created
0 series created
3 personas created
in 17 ms

Config file changed: /Users/derek/github/website/config.toml
0 draft content
0 future content
8 pages created
0 non-page files copied
0 paginator pages created
2 tags created
0 series created
3 personas created
in 67 ms

Config file changed: /Users/derek/github/website/config.toml
0 draft content
0 future content
12 pages created
0 non-page files copied
0 paginator pages created
2 tags created
0 series created
3 personas created
in 57 ms
@moorereason
Copy link
Contributor

This would explain why I was getting these duplicate item errors with a main menu the other day:

ERROR: 2016/02/05 15:08:08 site.go:1234: Two or more menu items have the same name/identifier in Menu ...

I didn't realize that the page count may have been growing.

@bep
Copy link
Member

bep commented Feb 14, 2016

I cannot reproduce this locally -- so I guess this is a OS thing? Windows?

@spf13 my best guess this and some other issues have a root in the changes you made recently. Do you have any plans to look at these?

@bep
Copy link
Member

bep commented Feb 14, 2016

I was wrong, I can reproduce it .. It only happens when I edit the config.toml.

@bep bep assigned bep and unassigned spf13 Feb 14, 2016
@bep bep added this to the v0.16 milestone Feb 14, 2016
@bep bep closed this as completed in 8c84048 Feb 14, 2016
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
@github-actions
Copy link

github-actions bot commented Apr 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants