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
-
A lot of static site generators allow for configuring a "default index" file, like
README.md
orindex.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 usereplacementPatterns
to 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.md
at 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