Root page defaults to about.md instead of index.md
See original GitHub issueEnvironment
- Operating System:
Darwin
- Node Version:
v16.14.0
- Nuxt Version:
3.0.0-rc.3
- Package Manager:
yarn@1.22.19
- Builder:
vite
- User Config:
modules
- Runtime Modules:
@nuxt/content@2.0.1
- Build Modules:
-
Reproduction
- Create a fresh nuxt content project with:
npx nuxi init blog -t content
(as described on the Get Started guide) - cd into blog:
cd blog
- Install dependencies with yarn:
yarn install
- Start dev server:
yarn dev
- Browse to http://localhost:3000
- It renders the
about.md
rather than theindex.md
page
Describe the bug
According to https://content.nuxtjs.org/guide/writing/content-directory the root page should be index.md
, however it is rendering about.md
instead.
Screen recording of completely fresh install showing the described behavior:
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Github repo url displaying readme.md instead of index.html
I looked it up and read that the index should be living in the same location as the readme.md, because github pages is...
Read more >What layout is used for root-level content pages ... - HUGO
The first and older approach is to treat “about” as a section, so content/about/_index.md. Consistent with the docs, this defaults to using the...
Read more >2.2 Configuration | blogdown: Creating Websites with R ...
Basically, Hugo generates foo/index.html for foo.md by default instead of foo.html , because the former allows you to visit the page via the...
Read more >Hosting Websites on GitHub – Web Publishing with GitHub ...
Index Page By default, the homepage for a GitHub Pages website is built from a file called index.md : in the absence...
Read more >Configuration - MkDocs - Read the Docs
Assuming the docs_dir setting was left with the default value of docs , the source files for this site's build process would be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed in #1224. You can try it by using
@nuxt/content-edge
.There is no ETA for the next version. We are working on a couple of improvements and fixes. I’ll keep this issue open to notify you all.