-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Remove .html from routes #270
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
Comments
Duplicate of #78. The current workaround is to rename your post to One benefit to this workaround is you can store assets (such as images) under the same directory as the |
@mdaffin Thanks, I'll use that for now. |
@mdaffin The drawback is that it adds a trailing slash on all post URLs. This will for sure cause problems if you ever decide to change to another generator or CMS. |
Question:
Is there a way to remove the trailing .html on pages? I'm testing this both locally and on GitHub pages.
Ignoring the fact that this isn't fleshed out at all: https://johnhhorton.github.io/vividdev.com/posts/ us using README.me under the posts folder and resolves correctly. When navigating to an individual post like https://johnhhorton.github.io/vividdev.com/posts/PostWithCodeExample.html the
.html
extension is required.While the focus of VuePress is for docs, I don't have any problem building in my own blog friendly features, but I would imagine that page URLs without
.html
would be preferable. I would imagine this is especially important for someone porting another non.html
site to this one for SEO reasons.The text was updated successfully, but these errors were encountered: