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

Links in sidebar without index.html extension #22

Closed
iloveip opened this issue Feb 26, 2014 · 3 comments
Closed

Links in sidebar without index.html extension #22

iloveip opened this issue Feb 26, 2014 · 3 comments

Comments

@iloveip
Copy link

iloveip commented Feb 26, 2014

Hello!
How can I remove index.html extensions from links to pages in sidebar? Node.url tag generates something like this /about/index.html, and I simply need to use /about/ as a link. Is there a way to do so?

@mdo
Copy link
Member

mdo commented Feb 26, 2014

Our demo site has the same code as in this repo, and it's URLs are fine. Be sure to set your _config.yml up properly to include permalinks: pretty.

@mdo mdo closed this as completed Feb 26, 2014
@iloveip
Copy link
Author

iloveip commented Feb 27, 2014

Actually I have set permalinks: /kb/:title in my _config.yml file, as I want the posts to show under page /kb without any category or date. But if I change them back to pretty, the sidebar works without index.html extension for pages.

Do you have any idea how I can keep permalinks: /kb/:title and links in sidebar without index.html extension for pages?

@mdo
Copy link
Member

mdo commented Feb 27, 2014

Probably just need to modify the sidebar to account for that. Manually add index.html at the end of the link's hrefs.

joshmoore referenced this issue in joshmoore/ome-blog Apr 17, 2014
Updated the verison to 0.2.0 since there were new features added.
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