File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,7 @@ import { NotionPage } from "./NotionPage";
55
66// This strategy gives us a file tree that mirrors that of notion.
77// Each level in the outline becomes a directory, and each file bears the name of the Notion document.
8- // Pros: Easy to read and understand. The URLs are perhaps better for SEO.
9- // Cons: The URLs become fragile. Moving a file, enclosing it in a new level, or tweaking
10- // the title means the url will change. This may or may not be worth it to you.
11- //
12- // Note that I tried getting a readable file tree while generating slugs based on the notion page id.
13- // However Docusaurus still makes the url be the "hierarchical path"/slug. So the using the slug as an id
14- // doesn't buy us much... it would give protection against name changes, but not changes to the outline structure.
8+ // As long as you use slugs, the urls is still just something like https://site/slug
159
1610export class HierarchicalNamedLayoutStrategy extends LayoutStrategy {
1711 public newLevel (
You can’t perform that action at this time.
0 commit comments