When taxonomies are used—and taxonomy templates are provided—Hugo will automatically create both a page listing all the taxonomy’s terms and individual pages with lists of content associated with each term. For example, a categories taxonomy declared in your configuration and used in your content front matter will create the following pages:
Individual taxonomy list pages (e.g., /categories/development/) for each of the terms that shows a listing of all pages marked as part of that taxonomy within any content file’s front matter
How do I disable the generation of pages for a particular taxonomy and terms (not all taxonomies)? In my case, I have an authors taxonomy for keeping track of who wrote which page, and also to associate email and website parameters with each author for the RSS/Atom feeds, but I dont want /authors/ and /authors/foo/ pages to be generated.
I’ve read that section, and I don’t think it does. Please quote what you’re referring to. That section explains how to remove the categories and tags taxonomies, and how to add additional taxonomies; it doesn’t show how to add taxonomies, but prevent generating output pages for them.
In my case, I have an authors taxonomy for keeping track of who wrote which page, and also to associate email and website parameters with each author for the RSS/Atom feeds, but I dont want /authors/ and /authors/foo/ pages to be generated.
Can you please demonstrate how that section enables this?
but neither worked; both http://localhost:1313/authors/ and http://localhost:1313/authors/foo/ are navigable with hugo server. Although I noticed that the term URL for http://localhost:1313/authors/foo/ on http://localhost:1313/authors/ was blank with either configuration.
@irkode “Authors” is a taxonomy, not a category term, e.g. /authors/john-smith/, not /categories/authors/. All output files—HTML/RSS/Atom—should be omitted. The taxonomy is purely for “backend” purposes, like filling in the author contact info for pages under /blog/ in an RSS/Atom feed.
I suggest you compare what you have done with this example:
git clone --single-branch -b hugo-forum-topic-50326 https://github.com/jmooring/hugo-testing hugo-forum-topic-50326
cd hugo-forum-topic-50326
hugo server
This is not a bug. The behavior is expected. We do not clear the public directory when building a site. If you don’t like the behavior and have a static directory in the root of your project, use the --cleanDestinationDir CLI flag when building your site.
“Authors” is a taxonomy, not a category term, e.g. /authors/john-smith/, not /categories/authors/. All output files—HTML/RSS/Atom—should be omitted. The taxonomy is purely for “backend” purposes, like filling in the author contact info for pages under /blog/ in an RSS/Atom feed.
first the wording it should have beend taxonomy in my post (updated it just for clarity):