Skip to content

Replace hyphens in tag titles with spaces #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zihanKuang
Copy link
Contributor

Notes for Reviewers

This PR fixes #84

Description
This change updates the display of taxonomy terms to replace - with a space in titles.
The change does not modify URLs. It only affects the visible text,.

Three files were added from the Docsy theme with a single modification:

  • layouts/partials/taxonomy_terms_article.html
  • layouts/partials/taxonomy_terms_cloud.html
  • layouts/term.html

In each file, {{ .Title }} is replaced with:

{{ title (replace .Page.Title "-" " ") }}
image 17feb7e1-917d-4114-ad42-f4f522e10dc7

Signed-off-by: ZihanKuang <[email protected]>
@leecalcote
Copy link
Member

leecalcote commented Aug 8, 2025

@zihanKuang do we or are we going to do the same thing in Layer5 Docs?

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

Successfully merging this pull request may close these issues.

Investigate Tag Naming Conventions for `word-another-word
2 participants