|
6 | 6 | {% if page.title != "about" %}
|
7 | 7 | {% assign name = site.title | split: ' ' %}
|
8 | 8 | <a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl | prepend: site.url }}/"><span class="font-weight-bold">{{ name | first }}</span> {{ name | last }}</a>
|
9 |
| - {% elsif site.social_icons_pos == 'top' %} |
| 9 | + {% elsif site.show_social_icons %} |
10 | 10 | <!-- Social Icons -->
|
11 | 11 | <div class="row ml-1 ml-sm-0">
|
12 | 12 | {% include social.html %}
|
|
21 | 21 | </button>
|
22 | 22 | <div class="collapse navbar-collapse text-right" id="navbarNav">
|
23 | 23 | <ul class="navbar-nav ml-auto flex-nowrap">
|
24 |
| - <li class="nav-item {% if page.title == 'about' %}navbar-active{% endif %}"> |
| 24 | + <!-- About --> |
| 25 | + <li class="nav-item {% if page.title == 'about' %}active{% endif %}"> |
25 | 26 | <a class="nav-link" href="{{ '/' | prepend: site.baseurl | prepend: site.url }}">
|
26 | 27 | about
|
27 | 28 | {% if page.title == "about" %}
|
28 | 29 | <span class="sr-only">(current)</span>
|
29 | 30 | {% endif %}
|
30 | 31 | </a>
|
31 | 32 | </li>
|
| 33 | + <!-- Blog --> |
| 34 | + <li class="nav-item {% if page.url contains 'blog' %}active{% endif %}"> |
| 35 | + <a class="nav-link" href="{{ '/blog/' | prepend: site.baseurl | prepend: site.url }}"> |
| 36 | + blog |
| 37 | + {% if page.title == "blog" %} |
| 38 | + <span class="sr-only">(current)</span> |
| 39 | + {% endif %} |
| 40 | + </a> |
| 41 | + </li> |
| 42 | + <!-- Other pages --> |
32 | 43 | {% for p in site.pages %}
|
33 |
| - {% if p.title and p.url != "/" %} |
34 |
| - <li class="nav-item {% if page.nav == p.nav %}navbar-active{% endif %}"> |
35 |
| - <a class="nav-link" href="{{ p.url | prepend: site.baseurl | prepend: site.url }}"> |
36 |
| - {{ p.title }} |
37 |
| - {% if page.nav == p.nav %} |
38 |
| - <span class="sr-only">(current)</span> |
39 |
| - {% endif %} |
40 |
| - </a> |
41 |
| - </li> |
42 |
| - {% endif %} |
| 44 | + {% if p.title and p.url != "/" %} |
| 45 | + <li class="nav-item {% if page.title == p.title %}active{% endif %}"> |
| 46 | + <a class="nav-link" href="{{ p.url | prepend: site.baseurl | prepend: site.url }}"> |
| 47 | + {{ p.title }} |
| 48 | + {% if page.nav == p.nav %} |
| 49 | + <span class="sr-only">(current)</span> |
| 50 | + {% endif %} |
| 51 | + </a> |
| 52 | + </li> |
| 53 | + {% endif %} |
43 | 54 | {% endfor %}
|
44 | 55 | </ul>
|
45 | 56 | </div>
|
|
0 commit comments