-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: add sectionsTitles parameter #310
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for hugo-hextra ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The user can define a per section title in params, used in section pages. If none is defined, the default title is used.
94c1fbd
to
f66c915
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! we need to take into account that our site supports multiple languages.
the current approach might not work for multi-language sites. we should probably figure out a different approach.
For multi-languages it works too, you just have to put
As mentionned in Hugo documentation (v0.112.0+): |
@imfing is it still ongoing or should I close ? |
If the website is composed of multiple sections, we could want to define different titles templates for each of them. For example:
With this PR, the user can define a new entry
params
,sectionsTitles
to define per section title, used in the title of section pages. If none is defined, the default title is used.Example: