How to handle "default index" files? #188
Unanswered
chris-dura
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A lot of static site generators allow for configuring a "default index" file, like
README.mdorindex.md. So, markdown authors can use[link](../path/to/default/)instead of[link](../path/to/default/README.md).I'm trying to test that the README.md file exists (and not just the
default/directory), so I tried to usereplacementPatternsto assume that a path ending in a trailing slash/means it should checkpath/to/default/README.md.However, with the above config, it would cause legitimate external URLs like
https://example.com/to report as "dead" because it will add aREADME.mdat the end.Any ideas of how I can at least configure
/some/path/to/default/andhttps://example.com/differently?Beta Was this translation helpful? Give feedback.
All reactions