Replies: 4 comments
-
The links in the navigation bar are added automatically based on the pages in the pages folder (with search, tags, portfolio ...). So you can't just plug an external link there by default. (We could customize the However, If you wish to add a link to an external page, there's a workaround, where you can add a new page which will redirect on load to the external one. For example, adding this ---
layout: page
title: GitHub
permalink: /redirect/
---
### Redirecting to the GitHub page ...
<script type="text/javascript">
window.location.href = "https://github.com/sylhare/Type-on-Strap"
</script> |
Beta Was this translation helpful? Give feedback.
-
Thanks, I see. I already came across the JS redirect method, but it's a hacky workaround imo. I'd really like to have a proper, direct link in the menu. I'll look into modifying |
Beta Was this translation helpful? Give feedback.
-
For now, I just added this in
And create a file This isn't perfect, as it constrains your external links to be in front (or after) the internal ones, but it's a start. |
Beta Was this translation helpful? Give feedback.
-
I have made a PR which should handle this usecase: #416 |
Beta Was this translation helpful? Give feedback.
-
How do I add a menu item to the menu that is a link to an external website as opposed to an internal page? As far as I understand, the menu only sources its content from the pages' front matter.
Sorry in advance if this is a stupid question, Jekyll noob here ;)
Beta Was this translation helpful? Give feedback.
All reactions