Skip to content

External Link in NavBar #579

Answered by alshedivat
AstroAnmol asked this question in Q&A
Discussion options

You must be logged in to vote

you should be able to add arbitrary links to the navbar by editing _includes/header.html and adding a few lines of code similar to the one that adds the about page link:

<!-- About -->
<li class="nav-item {% if page.title == 'about' %}active{% endif %}">
<a class="nav-link" href="{{ '/' | relative_url }}">about
{%- if page.title == "about" -%}
<span class="sr-only">(current)</span>
{%- endif -%}
</a>
</li>

for your substack link, you can have something like this:

<!-- Substack --> 
<li class="nav-item"><a class="nav-link" href="https://blog.aerospacenerd.com/">substack</a></li> 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AstroAnmol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants