Jekyll redirects to a 404 and does not render post.md #23449
-
I want my index.md seen at to redirect to pages I have written in markdown I tried implementing, post_url variable , such as documented
Image taken from jekyllrb.com/docs/liquid/tags/#linking-to-posts At first I thought this was an error from the for loop, so I added the link manually as detailed in the documentation specifically for pages written in markdown. index.md
_config.yml
New users can only post 2 links. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It looks like the links that are being generated from this code are missing the repository name baseurl e.g. the link to your site is:
However, the URLs that are being generated look like the following:
This results in a 404 as it’s missing the repository name Note that the Jekyll website mentions that you don’t need to do this as of Jekyll version 4.0. However, GitHub Pages still runs Jekyll 3.8.7 underneath so you will need to manually include the There are two ways you can fix this. The first—and probably the best, if this is a personal blogging website—is to turn this Pages site into a User Pages site. To do this you’ll need to rename your repository from Alternatively you can modify the code to automatically include the
If you’re going to use the first method I’d probably recommend you also do the second too, but both should do the job! |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @thomasshaped !! It worked. |
Beta Was this translation helpful? Give feedback.
-
Hi, to |
Beta Was this translation helpful? Give feedback.
It looks like the links that are being generated from this code are missing the repository name baseurl
Julien_Tremblay_McLellan/
from the URL.e.g. the link to your site is:
https://jtm-lis.github.io/Julien_Tremblay_McLellan/
However, the URLs that are being generated look like the following:
https://jtm-lis.github.io/2020/07/27/library-carpentry-workshop-american-university-notes.html
This results in a 404 as it’s missing the repository name
Julien_Tremblay_McLellan/
, which is thebaseurl
value, from the URL.Note that the Jekyll website mentions that you don’t need to do this as of Jekyll version 4.0. However, GitHub Pages still runs Jekyll 3.8.7 underneath so you will need to manually…