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

How did you make Jekyll do standalone pages without the .html extension? #231

Closed
feross opened this issue Aug 25, 2012 · 8 comments

Comments

Projects
None yet
4 participants
@feross
Copy link

commented Aug 25, 2012

I noticed that on this page (http://zachholman.com/about) you don't have a .html extension.

Although it was straightforward to remove the .html extension from my normal blog posts, I can't figure out how to do it with standalone pages.

Thanks for any help! You're amazing & awesome, btw.

@holman

This comment has been minimized.

Copy link
Owner

commented Aug 25, 2012

It's actually a github.com thing. Just make pages with the .html extension, and when you push it up, we'll hook up the routes for it to work automatically. That means it won't work locally without the extension, but so it goes.

@holman holman closed this Aug 25, 2012

@feross

This comment has been minimized.

Copy link
Author

commented Aug 25, 2012

I'm running my own Jekyll install so that won't work, but I'll just make a folder called about and put index.html inside. Problem solved.

Thanks.

@feross

This comment has been minimized.

Copy link
Author

commented Sep 1, 2012

Just wanted to say thanks for having your blog's code available. It was super helpful in getting my blog set up with Jekyll: http://feross.org/

:)

@holman

This comment has been minimized.

Copy link
Owner

commented Sep 1, 2012

Awesome, glad I could help. Looks good!

@deitch

This comment has been minimized.

Copy link

commented Feb 12, 2013

So it does it automatically on GHP, if it has /about.html then /about will work as well?

I run a different SSG, load up the html to GHP. I used to do this stuff in .htaccess or equivalent, spent the last 15 mins looking for a solution that would work on GHP. Now I know it works automatically! Too funny!

@deitch

This comment has been minimized.

Copy link

commented Feb 12, 2013

And so it does, just tried it. Hats off.

@shumushin

This comment has been minimized.

Copy link

commented Dec 13, 2013

Is there a way to actually disable this feature when /index.html and /index are pointing to the same page? It is bad for SEO - you will get two pages with the same content and it breaks Disqus comments, as for Disqus /index and /index.html are different URLs.

@holman

This comment has been minimized.

Copy link
Owner

commented Dec 13, 2013

I suspect not... really not sure though. Might want to post an issue in mojombo/jekyll about it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.