Skip to content

fix: tags format#941

Open
fmunteanu wants to merge 2 commits intoimfing:mainfrom
fmunteanu:fix/tag-display
Open

fix: tags format#941
fmunteanu wants to merge 2 commits intoimfing:mainfrom
fmunteanu:fix/tag-display

Conversation

@fmunteanu
Copy link
Contributor

Objective

Fixes the incorrect tag format, standards are #tag_name.

Scope

  • Bug (resolves an issue)
  • Enhancement (improves existing functionality)
  • Feature (adds new functionality)
  • Documentation (adds or improves documentation)

Impact

  • Non-breaking (backwards compatible)
  • Breaking (backwards incompatible, impacts end-user)

Checklist

  • My code follows the contributing guidelines of this project
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new issues or warnings
@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 8d070ec
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/699b9e501b1eec0008083a21
😎 Deploy Preview https://deploy-preview-941--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@imfing
Copy link
Owner

imfing commented Feb 23, 2026

Hey! Thanks for the pull request. Could you tell a little more about what problem this is trying to fix?

@fmunteanu
Copy link
Contributor Author

fmunteanu commented Feb 23, 2026

Hey! Thanks for the pull request. Could you tell a little more about what problem this is trying to fix?

Is quite simple @imfing, if I set a tag to #hello_world, the theme will transform it into #Hello_world, applying the Title case format, which is wrong. Tags should always be lowercase, as per standards. With the current fix, the end-user has both choices, the tags will be displayed as per user's chosen format. Hence why is not a breaking change.

You can see the correct tags into Anthropic instances blog I created: https://axivo.com/claude/reflections/

I also started a discussion about the new blog format, I think it will be a good improvement, see #939 discussion.

@fmunteanu fmunteanu mentioned this pull request Feb 23, 2026
10 tasks
@imfing
Copy link
Owner

imfing commented Feb 23, 2026

Hey! Thanks for the pull request. Could you tell a little more about what problem this is trying to fix?

Is quite simple @imfing, if I set a tag to #hello_world, the theme will transform it into #Hello_world, applying the Title case format, which is wrong. Tags should always be lowercase, as per standards. With the current fix, the end-user has both choices, the tags will be displayed as per user's chosen format. Hence why is not a breaking change.

You can see the correct tags into Anthropic instances blog I created: https://axivo.com/claude/reflections/

I also started a discussion about the new blog format, I think it will be a good improvement, see #939 discussion.

Thanks for the clarification.

For this PR, let's keep the scope limited to fixing the title case transformation (i.e., preventing automatic uppercasing of tags).

We can discuss the blog redesign separately to keep this change focused and easier to review.

@fmunteanu
Copy link
Contributor Author

Sure thing @imfing, let me now if you want me to change anything into PR.

@imfing
Copy link
Owner

imfing commented Feb 25, 2026

Sure thing @imfing, let me now if you want me to change anything into PR.

I noticed many lines that don't seem connected to the tag format fix you described earlier. could you clarify?

@fmunteanu
Copy link
Contributor Author

fmunteanu commented Feb 26, 2026

@imfing the changes are all connected to the same tag format fix. Hugo's .Title and .LinkTitle apply title case transformation to tags, so #hello_world becomes #Hello_world. The problem is that tag names are rendered in four places, each requiring the same fix:

  • tags.html — Uses $tag (raw front matter value) instead of the title-cased .Title
  • blog/list.html — The <h1> heading on a tag's post list (e.g. /tags/hello_world/) uses .Data.Term instead of .Title
  • taxonomy.html — The tags index page uses the raw $term from the range loop instead of .Page.LinkTitle
  • breadcrumb.html — The breadcrumb uses a separate path for tags to avoid the utils/title partial applying title case

Without all four, the tag displays correctly in one place but still shows #Hello_world in others.

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

Labels

None yet

2 participants