-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Labels
Milestone
Comments
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
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
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
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: