Add config toggle to suppress taxonomy display on posts#5449
Open
bexelbie wants to merge 1 commit intommistakes:masterfrom
Open
Add config toggle to suppress taxonomy display on posts#5449bexelbie wants to merge 1 commit intommistakes:masterfrom
bexelbie wants to merge 1 commit intommistakes:masterfrom
Conversation
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>
Contributor
Author
|
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. |
Collaborator
|
What about just hiding relevant elements with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
show_taxonomysite config option. When set tofalse, theper-post tag and category lists rendered by
page__taxonomy.htmlare suppressed. Default behavior is unchanged — the lists display
unless explicitly disabled.
Configuration
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.htmlinclude with an emptyfile. This provides a cleaner, config-driven alternative.
Documentation updated in the taxonomy archive section of the
configuration docs.