-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
SEO friendly URLs #78
Comments
Wouldn't it be good idea to make reflecting names ? For example: |
Don't know if it's what you want, assume you has following structure:
The setting with guide.md: '/guide/'
help.md: '/help/' And if want to refer a anchor link e. g. |
Every static web server I have seen will serve Note that with the current rules both Note that not many web static servers support |
Small note: Although it looks like
|
Will go for a folder + index.md for each and every page I write. This way, I can also encapsulate the required assets on that page. A major concern left, is to make netlify redirect Vuepress already does that, as it looks like on their website. https://vuepress.vuejs.org/guide redirects to https://vuepress.vuejs.org/guide/
|
By the way: relative links in markdown are checked by vuepress. |
Relative check for |
It would also help to support NetlifyCMS if VuePress could generate a clean URL for any MD file. Instead of needing to generate a folder + an index.md |
We're closing this issue as stale as it's more than 20 days without activity, and without an associated Pull Request. Please feel free to continue discussion. We'll reopen this issue if anything actionable is posted. |
Would this be ok as the default behaviour @ulivz? Can't really think of a downside for this.
|
@andreasvirkus Looks good to me. It would be really nice to get some SEO friendly URLs, since Vuepress even lists SEO as a benefit over other Vue based generators. |
@andreasvirkus How will you handle |
Well the clash exists currently as well, correct (they both generate |
@andreasvirkus Hey, just wondering if you've made any progress so far, or if you've even gotten started for that matter. :) Just really eager to get rid of these ugly and bad html extensions on the URL. |
Why not do it like Nuxt does it? https://nuxtjs.org/guide#static-generated-pre-rendering- Then a file like |
Is there any progress on this? |
Right now, the only workaround is to create
README.md
files in folders, which are generated asindex.html
.Since this is a static site generator to be deployed to almost all platforms (apache, node, nginx) this might be a bit more trickier to set up.
A start would be to have more fine-grained control about which file is used as an
index.html
(README.md is a bit github centric, which is fine for the start)I don't know if the workaround should be entirely on the rendered output side. But maybe an alternative to providing a
.htaccess
file or node server with routes based on output, is to create folders for subpages and createsubpage/index.html
instead.This is also related to the Blog support roadmap (#36)
The text was updated successfully, but these errors were encountered: