question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Root page defaults to about.md instead of index.md

See original GitHub issue

Environment

  • 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

  1. Create a fresh nuxt content project with: npx nuxi init blog -t content (as described on the Get Started guide)
  2. cd into blog: cd blog
  3. Install dependencies with yarn: yarn install
  4. Start dev server: yarn dev
  5. Browse to http://localhost:3000
  6. It renders the about.md rather than the index.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 Shot 2022-06-10 at 2 28 49 pm

Screen recording of completely fresh install showing the described behavior:

NuxtContentRecording

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
farnabazcommented, Jun 10, 2022

This should be fixed in #1224. You can try it by using @nuxt/content-edge.

'@nuxt/content': 'npm:@nuxt/content-edge@latest',
5reactions
farnabazcommented, Jun 10, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found