vjeantet / hugo-theme-docdock

Declination of @matcornic Learn theme to Hugo

Home Page:https://docdock.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

eliza411 opened this issue · comments

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.