You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ;)
The text was updated successfully, but these errors were encountered:
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 navbar.liquid to display some websites from the config.yml, something that I might look into in the future).
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 github.md in the pages folder, I am able to go to the GitHub repository when clicking on the title in the navbar.
---layout: pagetitle: GitHubpermalink: /redirect/---### Redirecting to the GitHub page ...
<scripttype="text/javascript">
window.location.href = "https://github.com/sylhare/Type-on-Strap"
</script>
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 ;)
The text was updated successfully, but these errors were encountered: