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

Page creation issue for taxonomies without _index.md 0.18.1 #2992

Closed
jeffreycentex opened this issue Jan 27, 2017 · 2 comments
Closed

Page creation issue for taxonomies without _index.md 0.18.1 #2992

jeffreycentex opened this issue Jan 27, 2017 · 2 comments
Assignees
Milestone

Comments

@jeffreycentex
Copy link

The basic problem is thus: I can specify a _index.md for a category or a tag (i.e., taxonomy terms), but only the categories and tags items that have had the _index.md generate pages. The other taxonomy terms that I want to use the default for are not generated, resulting in a 404 error.

In my config.toml file, I have the following set:

[taxonomies]
  tag = "tags"
  category = "categories"

I will use tags as my example as I do have some custom templates for my categories on my blog.

Under content, I have a folder for tags. Inside tags, I have two folders that match 2 of my approximately 15 tags. Inside these two folders, I have an _index.md file.

When I run hugo (and as can be seen by the current version of my website hosted on gitlab), only the two pages I specified in the /content/tags folder generated pages - not the overall list which is what happens if I remove the /content/tags folder.

For categories, I only had 5 so I specified each in the /contents/categories folder and all of them generated...

For all the taxonomy pages generated, the index.xml (RSS) was created for files that had the _index.md file created, but not for any that didn't.

This is for hugo 0.18.1 and happens on Windows, Ubuntu 16.10, and on the gitlab build server,

https://gitlab.com/jeffreycentex/jeffreycentex.gitlab.io is my current repo that has the issue (Commit c7bfa5d8) and the content is live on https://jeffreycentex.gitlab.io (the tag list is on the main page in the sidebar)

@jeffreycentex
Copy link
Author

It seems that this happens sporadically.. I run build after build of the website and I will get different tag and category pages generated each time. So the problem is more that hugo does not build this content consistently...

@github-actions
Copy link

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 Mar 27, 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

2 participants