Github page link to .md file not showing in Jekyll theme #22083
-
Hi, my basic index page CTF works fine and shows the Jekyll Theme. My issue is that my link in the page goes back to github and another .md file. Why is this not showing the same Jekyll theme. Am I wrong to assume that this would be automatic? Do I need to do something to each .md page to make it fit in with the same theme? All help appreciated. Regards K |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is happening because you’ve created a direct link to your file inside your repository on GitHub.com. For example, this is one of the links you’ve created inside your
You can see the rendered version of this page on your Pages site here: https://kartibok.github.io/Capture-the-Flag/basic_pentesting In order to link this page instead of the markdown file inside your repository you’ll need to create a relative link to the file:
When your site is built Pages will transform this link to point to the rendered HTML version instead of linking to the markdown version in your repository. This will allow the link to be clickable inside your repository and also take you to the correct rendered version on your Pages site. |
Beta Was this translation helpful? Give feedback.
-
Thomas, Thank you very much. Such a simple solution!! Your help has been appreciated. Regards K |
Beta Was this translation helpful? Give feedback.
This is happening because you’ve created a direct link to your file inside your repository on GitHub.com. For example, this is one of the links you’ve created inside your
index.md
file:You can see the rendered version of this page on your Pages site here: https://kartibok.github.io/Capture-the-Flag/basic_pentesting
In order to link this page instead of the markdown file inside your repository you’ll need to create a relative link to the file:
When your site is built Pages will transform this link to poin…