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

Not able to set a title for _index.md #456

Closed
dkern opened this issue May 15, 2017 · 3 comments
Closed

Not able to set a title for _index.md #456

dkern opened this issue May 15, 2017 · 3 comments

Comments

@dkern
Copy link
Contributor

dkern commented May 15, 2017

I have an _index.md file in docs/ folder as entry point. It seems like there is no way to add a page title. It is always empty and only showing the separator line. Is there anything I can do to have an page title on that index file?

I've already tried to use front matter. But that seems to make no difference.

---
title: Test
---

_index.md file without title
no_title

Another, normal document viewing the page title:
title

@onigoetz
Copy link
Collaborator

Hello, what other options did you use ?
Normally the main page is presented as a landing page which doesn't need a title.

@dkern
Copy link
Contributor Author

dkern commented May 16, 2017

I don't want to have the lading page. So I set auto_landing : false and created an _index.md file as my entry point in docs. This works great so far, the only thing here is that I'm not able to set a title ...

I've already tested to use index.md instead of _index.md, what makes no difference.

ANother hint, using front matter to set the title workes perfectly for the browsers page title. But it wound be set as title of the document.

Content of _index.md:

---
title: Test !!
---
test

Output, Browsertitle is correct, heading is missing:
title

@onigoetz
Copy link
Collaborator

Okay, I fixed this issue auto_landing: false will now show the title for the homepage.

I will release it in a few days

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

No branches or pull requests

2 participants