CLI: Filter content for different target audiences

I am pretty new to HUGO so maybe I do not know about an obvious feature.

In our documentation I want to adress different target audiences. My idea was to tag all articeles that are only intended for “experts” with the tag “expert”. When I serve the page with hugo serve or build it to static sites I want to exclude those sites with the tag “expert” to not distract novice users.

Unfortunatelly I did not find a command line option to filter out content by tags. Am I missing something? Are there other ways to handle my use case?


Taxonomies are used to categorize content for searching, and doesn’t currently have that function. But you could just put that content in a different directory and not include it when you build, perhaps using a different config with a different contentDir set.