Skip to content

how to change the order of each section? #349

Answered by mbarbetti
zeyunlu asked this question in Q&A
Discussion options

You must be logged in to vote

The order of the sections in the navbar is set in header.html.
Actually the first section is about (see from line 25):

<!-- 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>

Then blog (see from line 34):

{% if site.blog_name %}
<!-- Blog -->
<li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
  <a class="nav-link" href="{{ '/blog/' | relative_url }}">
    blog
    {% if page.title == "blog" %}
    <span class="sr-only">(current)</span>
    {% endif %}
  </a>
</li>
{% en…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zeyunlu
Comment options

@yongjunshin
Comment options

@george-gca
Comment options

Answer selected by zeyunlu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants