Navigation Menu

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

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 · 1 comment · Fixed by #3067

Comments

@aroig
Copy link
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 menu weight and linktitle should be inherited from the front-matter in section pages with content Menu weight and linktitle should be inherited from the front-matter in section pages with content Jan 22, 2017
aroig added a commit to aroig/hugo that referenced this issue Feb 19, 2017
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 gohugoio#2974
@bep bep added this to the v0.19 milestone Feb 20, 2017
bep pushed a commit to bep/hugo that referenced this issue Feb 20, 2017
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 gohugoio#2974
bep added a commit to bep/hugo that referenced this issue Feb 20, 2017
This commit also fixes the default menu sort when the weight is 0.

Closes gohugoio#2974
@bep bep closed this as completed in #3067 Feb 20, 2017
bep pushed a commit that referenced this issue Feb 20, 2017
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
This commit also fixes the default menu sort when the weight is 0.

Closes #2974
@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 Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants