Skip to content
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

ContentBaseName() should return the directory for branch bundles #9112

Closed
jmooring opened this issue Nov 1, 2021 · 2 comments · Fixed by #9113
Closed

ContentBaseName() should return the directory for branch bundles #9112

jmooring opened this issue Nov 1, 2021 · 2 comments · Fixed by #9113
Assignees
Milestone

Comments

@jmooring
Copy link
Member

jmooring commented Nov 1, 2021

archetypes/default.md

+++
title = '{{ replace .Name "-" " " | title }}'
date = {{ .Date }}
draft = false
+++

hugo new tags/tag-a/_index.md

Version Title value in front matter
v0.88.1 title = 'Tag A'
04a3b45 title = '_Index'

Same behavior with hugo new content/tags/tag-a/_index.md in a multilingual setup.

@jmooring
Copy link
Member Author

jmooring commented Nov 1, 2021

Possibly related.. .File.ContentBaseName resolves to _index instead of tag-a, but that may be a separate issue.

@bep bep self-assigned this Nov 1, 2021
@bep bep added this to the v0.89 milestone Nov 1, 2021
@bep bep added the Bug label Nov 1, 2021
@bep bep changed the title Regression with hugo new for section pages ContentBaseName() should return the directory for branch bundles Nov 1, 2021
@bep bep closed this as completed in #9113 Nov 1, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants