Skip to content

Build options are ignored when generating the taxonomies map #10694

@jmooring

Description

@jmooring

With this in site configuration:

[[cascade]]

[cascade._build]
render = "never"
list = "never"
publishResources = false

[cascade._target]
path = '/hidden/**'

The taxonomies map unexpectedly contains:

  • Taxonomies that are only used in the "hidden" section
  • Terms that are only used in the "hidden" section
  • Weighted pages from the "hidden" section

This results in unexpected entries in:

  • Taxonomy pages
  • Term pages
  • RSS feeds
  • Sitemap

Example:

git clone --single-branch -b hugo-github-issue-10694 https://github.com/jmooring/hugo-testing hugo-github-issue-10694
cd hugo-github-issue-10694
hugo && grep -ri hidden public/*

Workaround:

[[module.mounts]]
source = 'content'
target = 'content'
excludeFiles = '/hidden/**.*'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions