Skip to content

Getting 404 On All Links (Static Site Built with .md, .scss, .html) #1459

Answered by pdmosses
jrwesa asked this question in General
Discussion options

You must be logged in to vote

@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 permalink setting, try replacing the above by:

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 link tag. That has the benefit of checking that the file exists.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jrwesa
Comment options

Answer selected by jrwesa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants