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

linktitle doesn't seem to work for _index.md files #145

Open
eliza411 opened this issue May 26, 2018 · 0 comments
Open

linktitle doesn't seem to work for _index.md files #145

eliza411 opened this issue May 26, 2018 · 0 comments

Comments

@eliza411
Copy link

Hi there,

I'm working on a site using the docdock theme where some of the deeper content has fairly long titles. Rather than changing the navigation width, I've been relying on title for the page title and linktitle for words that go in the navigation. This has been working great until recently, when I needed to set the link title for an _index.md page. It seems that the linktitle is ignored on those.

I get the same behavior whether I'm using the original or flex themeStyle. I wasn't sure it was a theme issue, so I tried using a different theme with nested menuing, and it consistently ignored the linktitle on all pages so I'm guessing at some level the theme must influence what's being used.

I've tested running hugo v0.37 and hugo v0.41 with a fresh git clone of docdock (commit b667496) using the example content.

Expected Behavior

On "normal" pages, the linktitle is used in the menu, when present. I expected the _index.md page would do the same.

Steps to Reproduce

Using the example content on any _index.md page, set a title: with one value and a linktitle with a different value. The _index.md page will load the title.

Thanks in advance for any help you can provide! If you need more information, I'm happy to oblige.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants