Is index.md the only option? #511
Replies: 6 comments 6 replies
-
Other options include https://retype.com/configuration/reserved_words/#default-pages Another option that provides unlimited flexibility is the Page https://retype.com/configuration/page/#route If neither of those are ideal for your requirements, just let us know some more details and we might be able to come up with some other options. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Not there yet. What I am after is essentially a redirect, so that every load of andrewculver.com/work/ redirects to andrewculver.com/work/introduction/ (introduction.md is a file in the /work/ directory), and have this done for all sub-directories. In other words, set anything to be the default, or than index, readme, and default, in each sub-directory. Ultimately what I am trying to get away from is having something more informative than an index.md file in every directory, so that search results, editor file lists, file mapping tools (like Obsidian), etc. don't just show "index" all over the place. |
Beta Was this translation helpful? Give feedback.
-
Here's a thought that might make this easier to implemen: The "default" .md file for any directory could be default.md, index.md, readme.md, or, [directory-name].md andrewculver.com/work/jjRover/jjRover.md is the default for it's directory andrewculver.com/work/jjRover |
Beta Was this translation helpful? Give feedback.
-
Handling the spaces in the .md file names like this is a great idea. |
Beta Was this translation helpful? Give feedback.
-
Using the redirect, the left side navigation shows a "Welcome" link/page at the top, even though it is never seen (it redirects as expected). Ideally "Welcome" would not be there. |
Beta Was this translation helpful? Give feedback.
-
Retype requires a root "home page". You can Here are a couple ideas to try: Option 1Set Here are the three files to demonstrate: retype.ymlinput: .
output: .retype
url: andrewculver.com/work
branding:
title: Andrew Culver index.md---
redirect: introduction.md
icon: home
title: Home
--- introduction.md---
icon: star
---
# Introduction Option 2Similar to Option 1, but delete retype.ymlinput: .
output: .retype
url: andrewculver.com/work
branding:
title: Andrew Culver index.md
|
Beta Was this translation helpful? Give feedback.
-
I would like to have the name of the default file loaded for a subdirectory URL be set to something other than index.md, on a directory-by-directory basis, include the site root. Possible?
Beta Was this translation helpful? Give feedback.
All reactions