-
What Am I Doing Wrong?Problem: All of my links are broken. Whether I am linking to another page (.md file) or linking to another header (#, ##, etc.), I get a 404 message that reads: See Links for Broken Links: https://jrwesa.github.io/docs/layout/subcategory/child-1/ Site: Built with the just-the-docs theme and .md, .scss files. NOTE: Currently, my GitHub Pages site deploys. The navigation seen on the left side of the site reflects my markdown pages. I had read other threads, but many people are dealing with their site not deploying at all. (Seemingly a problem with their index file, but I'm not sure that is my problem) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@jrwesa in your repo you have (e.g.): A link to the [same level](child-2.md) The target of a link definition in Markdown needs to be a URL, rather than a path to a file. Depending on your A link to the [same level](child-2) or by A link to the [same level](child-2.html) You can alternatively wrap your file paths in Jekyll's |
Beta Was this translation helpful? Give feedback.
@jrwesa in your repo you have (e.g.):
The target of a link definition in Markdown needs to be a URL, rather than a path to a file. Depending on your
permalink
setting, try replacing the above by:or by
You can alternatively wrap your file paths in Jekyll's
link
tag. That has the benefit of checking that the file exists.