Tutorials 20 min read

Give a Folder Its Own Note: README.md, index.md or the Folder's Name

MMNMNOTE
folder notereadme.mdindex.md_index.mdhugomkdocsdocusaurusgithubportable notes

Name a folder's own note README.md if the folder might ever reach GitHub, MkDocs or Docusaurus — it is the one name all three recognise, and the only one GitHub shows. In a Hugo site, use _index.md, never index.md: Hugo turns a folder holding index.md into a single page, and every other note inside it gets none.

The wish is old. "I’d like to be able to have a note for each folder," Joe Bush wrote on Obsidian's forum in July 2020; that thread now has 31,836 views and 243 likes.1 Three Obsidian plugins built around folder notes and folder indexes have about 679,000 downloads between them — 500,776 for the most popular, Folder Notes.2 A 2021 thread on adding a description note to a folder has nearly 40,000 views.3

The trouble is that "a folder's own note" is not a standard. Each tool picked a file name, and they picked differently. A file one tool treats as the folder's page is an ordinary file to the next — and in one tool, the wrong name quietly removes the folder's other notes from the site.

Which file does each tool treat as a folder's own note?

It depends on the tool. GitHub shows README.md. MkDocs uses index.md, or README.md when there is no index.md. Docusaurus accepts index, README or the folder's own name. Hugo makes _index.md the folder's page and turns index.md into a bundle that swallows its neighbours. The Folder Notes plugin defaults to the folder's name.

The table puts four candidate names inside a folder called Guides/ and asks five tools what each one is. Every cell is quoted from the tool's documentation or source, or measured by us on 2 December 2026. The three cells marked inferred rest on absence: the docs list what counts as an index, not every file that does not.

File inside Guides/GitHubMkDocsDocusaurus 3.10Hugo 0.171Folder Notes plugin 1.8 (default)
README.mdShown as the folder's READMEIndex page, if there is no index.mdCategory indexOrdinary page at /guides/readme/Ordinary note (unless you change the name template)
index.mdOrdinary file — not shown as the folder's READMEIndex page — wins over README.mdCategory indexLeaf bundle — no other note in the folder or its subfolders becomes a pageOrdinary note
_index.mdOrdinary fileOrdinary page (inferred)Ordinary doc (inferred)Branch bundle — the folder's page; its other notes keep their pagesOrdinary note
Guides.md (the folder's name)Ordinary fileOrdinary page (inferred)Category indexOrdinary page at /guides/guides/Folder note

No single name works in all five. README.md and index.md each reach three — but only README.md reaches GitHub, and only index.md can hide your other notes.

These are documented defaults. MkDocs and Docusaurus accept plugins and configuration that change them. If you have customised a tool, your own configuration is the authority.

GitHub shows README.md, and only README.md

GitHub displays a README.md on the page of any folder that contains one. An index.md in the same spot is an ordinary file: GitHub lists it and renders it when clicked, but never presents it as the folder's introduction. GitHub's REST API agrees — it returns a folder's README, and returns nothing for a folder holding only index.md.

GitHub's documentation describes the repository-level case: "If you put your README file in your repository's hidden .github, root, or docs directory, GitHub will recognize and automatically surface your README to repository visitors."4 When a repository has READMEs in more than one of those three places, the one shown is chosen in that order.

Subfolders are not in that sentence — but GitHub treats them the same way. Its REST API has an endpoint, "Get a repository README for a directory," for exactly this case.5

We asked that endpoint about three folders on 2 December 2026.6 The docs folder of MkDocs' own repository holds an index.md and no README: 404 Not Found. The documentation folder of the Folder Notes plugin's repository, also holding index.md and no README, returned 404 too. A Docusaurus package folder with a README.md returned the file. The folder pages on github.com matched — a rendered README in one, nothing in the other two.

On GitHub, a folder's note is called README.

MkDocs takes index.md first and README.md second

MkDocs builds each folder's index page from index.md. It also accepts README.md as the index page, because repository hosts display README files. When a folder holds both, MkDocs uses index.md and ignores README.md — so the README a visitor sees on GitHub is not the page that appears on the published site.

The "Index pages" section of the MkDocs user guide gives the reason before the rule. Many repository hosts display a README when you browse a folder. "MkDocs will allow you to name your index pages as README.md instead of index.md."7 Either way, the built file becomes index.html — the name a web server serves as the folder's page.

The tie-break is just as plain: "If both an index.md file and a README.md file are found in the same directory, then the index.md file is used and the README.md file is ignored."7

"Ignored" is literal. Keep both files in one folder and the site shows one introduction while GitHub shows the other. Let them drift apart and the two audiences read two different descriptions of the same folder.

One file avoids the split — README.md alone.

Docusaurus accepts three names for a folder's page

Docusaurus links a sidebar category to its folder's index document when that document is named index, named README, or named after the folder itself — Guides/Guides.md. The first two match regardless of letter case. Its documentation does not say which wins when a folder holds more than one, so keep one per folder.

The three conventions sit in a short list under "Category index convention": "Named as index (case-insensitive)", "Named as README (case-insensitive)", and "Same name as parent folder".8 Docusaurus's own example of the second is README.mdx, so the extension can vary too.

The same page states the trade-off between the first two in a single sentence: "Naming your introductory document README.md makes it show up when browsing the folder using the GitHub interface, while using index.md makes the behavior more in line with how HTML files are served."8 It is the clearest line in any of these docs on why both names exist.

One more behaviour matters for small folders. "If a folder only has one index page, it will be turned into a link instead of a category."8 A folder that holds nothing but its own note appears in the sidebar as a single link, not an expandable group.

Docusaurus is the most permissive of the five — and the only other tool here that reads the plugin's default name.

In Hugo, index.md hides the folder's other notes

Hugo treats a folder that contains index.md as a leaf bundle: one page, with every other file in the folder and its subfolders attached to that page instead of published on its own. No other note in the folder becomes a page. Name the folder's note _index.md instead and the folder becomes a section whose notes keep their pages.

Hugo's documentation draws the line in four sentences. "An index.md file contains the front matter and content of a regular page. Its directory is a leaf bundle." And: "An _index.md file contains the front matter and content of a home, section, taxonomy, or term page. Its directory is a branch bundle."9

The consequence comes in the section on leaf bundles: "Hugo does not create a page from any content file in a leaf bundle, including an index.md or _index.md file in a subdirectory."9 The same page says a leaf bundle "includes every file in its directory and subdirectories, at any depth" — so the reach goes all the way down.

Hugo moved and rewrote this page in November 2026. The old address, /content-management/page-bundles/, now redirects to /content-management/organization/, so links in older answers still land on the current wording.

We built a test site to see the effect, with Hugo v0.171.0 (built 30 November 2026).10 One folder held four notes:

Four notes in, one page out

content/a-index/index.md            ->  /a-index/
content/a-index/other-note.md       ->  (no page)
content/a-index/sub/_index.md       ->  (no page)
content/a-index/sub/deep-note.md    ->  (no page)

Same layout with _index.md

content/b-underscore/_index.md      ->  /b-underscore/  (lists other-note)
content/b-underscore/other-note.md  ->  /b-underscore/other-note/

The build finished without an error. Three notes simply had no URL.

This is the one cell in the table where a name changes the fate of other files. A wrong name anywhere else costs you a missing introduction. In Hugo it costs you the folder's other pages — and a habit learned in MkDocs or Docusaurus, where index.md is a perfectly good folder note, is exactly what leads there.

index.md is not wrong in Hugo. It is the right name for a folder that holds one article and its images, which is what the docs mean by "Use a leaf bundle to keep a page together with its images and other files."9 It is the wrong name for a folder of notes.

The Folder Notes plugin uses the folder's own name

Folder Notes, the most downloaded of the three Obsidian plugins, names a folder's note after the folder and keeps it inside: Guides/Guides.md. That matches Docusaurus's third convention and nothing else in the table. The plugin renames the note when you rename the folder inside Obsidian; a rename made anywhere else breaks the match.

The defaults sit in the plugin's source, version 1.8.28: folderNoteName: '{{folder_name}}', storageLocation: 'insideFolder' and syncFolderName: true.11 The placeholder is replaced with the folder's name, so the note's file name follows the folder.

The documentation is candid about what the name template means: "If you change the text every existing folder note which matched the old text won't be a folder note anymore and you have to use the button "Rename existing folder notes" to rename all folder notes."12

The template is a matching rule. A file is a folder note because its name matches — nothing else marks it.

That makes the rename the weak point. Inside Obsidian, the plugin catches a folder rename and renames the note to match.11 Rename the folder in your file manager, with git mv, or on a device without the plugin and let the change sync, and the note keeps its old name. Back in Obsidian it no longer matches — and the folder has no note.

The plugin also accepts a template without the placeholder — a fixed name such as README — and its settings code treats that as a supported mode.11 We read the code; we did not run that setup inside Obsidian, so try it on a copy of your notes first. A fixed name never has to change when the folder does.

Which name should you use for a folder's own note?

Use README.md for any folder that is, or might become, a GitHub repository or an MkDocs or Docusaurus site — all three recognise it. Inside a Hugo content folder, use _index.md. Use the folder's own name only when the plugin and Docusaurus are the only readers, and you rename folders from inside Obsidian.

  1. Default to README.md. It is the one name GitHub shows, MkDocs accepts, and Docusaurus reads in any letter case. It also survives a rename, because it never mentions the folder.
  2. In Hugo, _index.md for folders of notes. Keep index.md for a single article that travels with its images.
  3. One note per folder. MkDocs ignores README.md when index.md exists, and Docusaurus documents no order at all. Two candidates in one folder means two tools may pick two different files.
  4. Plugin users who want portability can try a fixed name template — on a copy first, since that setup is untested by us.

A folder's note describes one folder. A single map of a whole notes folder for an AI agent is a different file with a different job — How to Give Your AI Agent a Map of Your Notes covers that one.

How to check your own setup: the rename test

Close your notes app and rename one folder in your file manager — not inside the app — then reopen the app and the folder. A README.md still matches, because its name never depended on the folder's. A note named after the folder no longer does. Then, if you publish with Hugo, search the content folder for stray index.md files.

The rename test takes two minutes:

  1. Back up first. Commit the folder if it is a Git repository, or copy it somewhere else.
  2. Close the notes app, then rename a folder that has a note. Use Finder, Explorer or your file manager — Guides to Guides-test.
  3. Reopen your notes app. Does Guides-test still have its note? Guides-test/README.md does. Guides-test/Guides.md no longer matches a template built from the folder's name.
  4. Rename it back. Inside Obsidian, the plugin would have renamed the note for you; outside it, nothing did.

For a Hugo site, list every index.md that shares its folder with other notes. Run this from the site's root; each line it prints is a folder whose other notes get no page:

find content -name index.md | while read -r f; do
  d=$(dirname "$f")
  n=$(find "$d" -name '*.md' | wc -l)
  [ "$n" -gt 1 ] && echo "$d: $((n-1)) other note(s) get no page"
done

It counts notes in subfolders too, because Hugo's rule reaches them. Images are not counted — a leaf bundle is the right home for those.

For GitHub, open the folder in your browser and look for the rendered README on the folder's page. From a terminal, the GitHub CLI asks the same endpoint we used:

gh api repos/OWNER/REPO/readme/PATH/TO/FOLDER --jq .path

A path back means GitHub shows that file as the folder's README. A 404 means it shows none.

Common mistakes

Four mistakes break a folder's note without any error message: keeping two candidate files in one folder, carrying an index.md habit from MkDocs or Docusaurus into Hugo, renaming folders outside the app that matches notes by name, and expecting GitHub to display anything but a README.

Two neighbouring problems travel with a folder's note:

Frequently Asked Questions

The first two questions are thread titles from Obsidian's forum, still collecting views years later. The rest come up when the same folder meets a second tool, or a second spelling. Each answer gives the name that works and the tool that disagrees.

Folder as markdown note

A folder cannot hold text itself, so every tool uses a file inside it and treats that file as the folder's note. They disagree on the name: README.md on GitHub, index.md or README.md in MkDocs, three names in Docusaurus, _index.md in Hugo, and the folder's own name in the Folder Notes plugin.

Folder Note Plugin: Add description note to folder

By default the Folder Notes plugin creates a note named after the folder, inside it — Guides/Guides.md. Only Docusaurus reads that name as the folder's page. The plugin also accepts a fixed name such as README, which GitHub, MkDocs and Docusaurus all recognise; test that setting on a copy of your notes first.

Should the folder note live inside or beside the folder?

Inside. Every convention in this post puts the note inside its folder, and the plugin's default storage location is inside too. Its documentation warns about switching later: "If you switch the storage method all existing folder won't be recognized as folder notes anymore until you click on the switch button and the location of old folder note files gets changed."12

If I have both README.md and index.md, which one wins?

In MkDocs, index.md wins and README.md is ignored. GitHub shows only the README. Docusaurus accepts both and documents no order. In Hugo, index.md makes the folder a leaf bundle, so the README gets no page at all. Keep one note per folder and the question never comes up.

Why did my other notes disappear from my Hugo site?

A folder that contains index.md is a leaf bundle, and Hugo "does not create a page from any content file in a leaf bundle". Every other note in that folder and its subfolders loses its page, with no error. Rename the folder's note to _index.md and the other notes get their pages back.

Does it matter whether I write README.md or readme.md?

In Docusaurus it does not: both index and README match "case-insensitive", and its own example is README.mdx. MkDocs and GitHub's documentation spell the name README.md and state no rule for other spellings. The capitalised form is the one every tool here documents — use it everywhere.

What happens to a folder that contains only its note?

In Docusaurus, a folder with only one index page becomes a single link in the sidebar instead of a category. In Hugo, a folder with only index.md and its images is a normal leaf bundle — exactly what that name is for. On GitHub, a folder holding only README.md shows that README.


A folder's note is only as portable as its name. Pick the one most tools already read.


MNMNOTE keeps notes in open Markdown — plain files that every tool in this post can read. mnmnote.com

Footnotes

  1. Obsidian Forum, "Folder as markdown note," topic 2902, opened 2020-07-07 by Joe Bush (@arcandio) (31,836 views, 94 posts, 243 likes as of 2026-12-02). https://forum.obsidian.md/t/folder-as-markdown-note/2902, accessed 2026-12-02. ↩

  2. Obsidian community plugin registry, community-plugin-stats.json (folder-notes 500,776; folder-note-plugin 142,815; obsidian-folder-index 35,404 downloads as of 2026-12-02). https://raw.githubusercontent.com/obsidianmd/obsidian-releases/master/community-plugin-stats.json, accessed 2026-12-02. ↩

  3. Obsidian Forum, "Folder Note Plugin: Add description note to folder," topic 12038, opened 2021-01-27 (39,956 views, 67 posts as of 2026-12-02). https://forum.obsidian.md/t/12038, accessed 2026-12-02. ↩

  4. GitHub Docs, "About the repository README file." https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes, accessed 2026-12-02. ↩

  5. GitHub REST API documentation, "Get a repository README for a directory." https://docs.github.com/en/rest/repos/contents#get-a-repository-readme-for-a-directory, accessed 2026-12-02. ↩

  6. MNMNOTE check of the GitHub REST API, 2026-12-02: repos/mkdocs/mkdocs/readme/docs returned 404; repos/LostPaul/obsidian-folder-notes/readme/docs/docs returned 404; repos/facebook/docusaurus/readme/packages/create-docusaurus returned README.md. https://api.github.com ↩

  7. MkDocs, "Writing your docs," section "Index pages." https://www.mkdocs.org/user-guide/writing-your-docs/, accessed 2026-12-02. ↩ ↩2

  8. Docusaurus documentation (version 3.10), "Autogenerated," section "Category index convention." https://docusaurus.io/docs/sidebar/autogenerated#category-index-convention, accessed 2026-12-02. ↩ ↩2 ↩3

  9. Hugo documentation, "Content organization" (moved from /content-management/page-bundles/ in November 2026; last revised 2026-11-24). https://gohugo.io/content-management/organization/, accessed 2026-12-02. ↩ ↩2 ↩3

  10. MNMNOTE test build with Hugo v0.171.0, 2026-12-02. https://github.com/gohugoio/hugo/releases/tag/v0.171.0 ↩

  11. LostPaul, "obsidian-folder-notes," version 1.8.28 source: src/settings/SettingsTab.ts, src/events/handleRename.ts, src/settings/GeneralSettings.ts. https://github.com/LostPaul/obsidian-folder-notes, accessed 2026-12-02. ↩ ↩2 ↩3

  12. Obsidian Folder Notes documentation, "General settings" (Folder note name template; Storage location). https://lostpaul.github.io/obsidian-folder-notes/Features/Settings/General/, accessed 2026-12-02. ↩ ↩2