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

Menu weight and linktitle should be inherited from the front-matter in section pages with content #2974

Closed
aroig opened this Issue Jan 21, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@aroig
Contributor

aroig commented Jan 21, 2017

The lazy blogger setting to automatically generate menu entries for section pages is quite useful. However, if one wants to influence order, or translate link names, it can't be used, and the entire menu has to be described in config.toml.

Now that we have section pages with content, in that case we could inherit the weight and linktitle from the front-matter of those section pages. This will allow to use the lazy blogger setting, and still influence order and translate links directly from the content page front-matter, which is a little bit more comfortable.

@bep bep changed the title from menu weight and linktitle should be inherited from the front-matter in section pages with content to Menu weight and linktitle should be inherited from the front-matter in section pages with content Jan 22, 2017

@bep bep added the Enhancement label Jan 22, 2017

aroig added a commit to aroig/hugo that referenced this issue Feb 19, 2017

hugolib: improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.

This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.

Fixes #2974

@bep bep added this to the v0.19 milestone Feb 20, 2017

bep added a commit to bep/hugo that referenced this issue Feb 20, 2017

hugolib: Improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.

This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.

Updates #2974

bep added a commit to bep/hugo that referenced this issue Feb 20, 2017

hugolib: Finish menu vs section content pages
This commit also fixes the default menu sort when the weight is 0.

Closes #2974

@bep bep closed this in #3067 Feb 20, 2017

bep added a commit that referenced this issue Feb 20, 2017

hugolib: Improve menu generation for section pages with content
When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.

This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.

Updates #2974

bep added a commit that referenced this issue Feb 20, 2017

hugolib: Finish menu vs section content pages
This commit also fixes the default menu sort when the weight is 0.

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