Skip to content

Add config toggle to suppress taxonomy display on posts#5449

Open
bexelbie wants to merge 1 commit intommistakes:masterfrom
bexelbie:pr/taxonomy-toggle
Open

Add config toggle to suppress taxonomy display on posts#5449
bexelbie wants to merge 1 commit intommistakes:masterfrom
bexelbie:pr/taxonomy-toggle

Conversation

@bexelbie
Copy link
Contributor

@bexelbie bexelbie commented Mar 9, 2026

Add a show_taxonomy site config option. When set to false, the
per-post tag and category lists rendered by page__taxonomy.html
are suppressed. Default behavior is unchanged — the lists display
unless explicitly disabled.

Configuration

show_taxonomy: false

This only affects the inline tag/category lists on individual posts.
Taxonomy archive pages, breadcrumb links, and page meta are
unaffected.

Use case

Some sites use tags and categories for internal organization (e.g.
driving archive pages or filtering) but don't want them displayed
on each post. Currently the only way to suppress them is to
override the entire page__taxonomy.html include with an empty
file. This provides a cleaner, config-driven alternative.

Documentation updated in the taxonomy archive section of the
configuration docs.

Wrap tag/category list rendering in page__taxonomy.html with
{% unless site.show_taxonomy == false %}. Default behavior unchanged;
set show_taxonomy: false in _config.yml to suppress the per-post
tag and category lists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bexelbie
Copy link
Contributor Author

bexelbie commented Mar 9, 2026

This came about because I realized the mental overhead of maintaining categories and tags wasn't worth the engagement they got — my blog just doesn't organize that way, and I suspect plenty of others don't either. Easier to have a config switch than to override the include with an empty file.

@iBug
Copy link
Collaborator

iBug commented Mar 9, 2026

What about just hiding relevant elements with display: none?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants