summaryrefslogtreecommitdiff
path: root/_includes/header.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/header.html')
-rw-r--r--_includes/header.html38
1 files changed, 21 insertions, 17 deletions
diff --git a/_includes/header.html b/_includes/header.html
index e902722..ca15f93 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -7,32 +7,36 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
- <a class="navbar-brand" href="/">
- <img alt="Irssi Logo" class="navbar-irssi-logo" src="/assets/logo.png">
+ <a class="navbar-brand" href="{{ site.baseurl }}/">
+ <img alt="Irssi Logo" class="navbar-irssi-logo" src="{{ site.baseurl }}/assets/logo.png">
{% comment %}{{ site.title }}{% endcomment %}
</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
- <li{% if page.url == "/index.html" %} class="active"{% endif %}><a href="/">News</a></li>
+ <li{% if page.url == "/index.html" %} class="active"{% endif %}><a href="{{ site.baseurl }}/">News</a></li>
{% comment %}
Exclude the news feed and the paginated news pages.
{% endcomment %}
- {% for node in site.pages %}
- {% if node.title != "News" and node.title != "News Feed" %}
- {% if page.url == node.url %}
- <li class="active">
- <a href="{{ node.url }}" class="active">{{ node.title }}</a>
- </li>
- {% else %}
- <li>
- <a href="{{ node.url }}">{{ node.title }}</a>
- </li>
- {% endif %}
- {% endif %}
+ {% capture pageidx %}{% include weighted_sorted_pages.html %}{% endcapture %}{% assign pageidx = pageidx | strip_newlines | split:',' %}
+ {% assign ap = site.pages %}
+ {% for it in pageidx %}{% assign p_idx = it | times:1 %}{% assign node = ap[p_idx] %}{% comment %}
+ {% endcomment %}
+ {% if node.categories contains "_nav" %}
+ {% if page.url == node.url %}
+ <li class="active">
+ <a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.title }}</a>
+ </li>
+ {% else %}
+ <li>
+ <a href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a>
+ </li>
+ {% endif %}
+ {% endif %}
{% endfor %}
- <li><a href="http://scripts.irssi.org/">Scripts</a></li>
- <li><a href="https://github.com/irssi/irssi/issues">Bugs</a></li>
+ <li><a rel="external" href="/themes/">Themes</a></li>
+ <li><a rel="external" href="http://scripts.irssi.org/">Scripts</a></li>
+ <li><a rel="external" href="https://github.com/irssi/irssi/issues">Bugs</a></li>
</ul>
</div>
</div>