summaryrefslogtreecommitdiff
path: root/_includes/header.html
blob: ca15f939339e0750091c0197ec7dffbf287e1dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" id="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <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="{{ site.baseurl }}/">News</a></li>
                {% comment %}
                    Exclude the news feed and the paginated news pages.
                {% endcomment %}
                {% 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 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>
</nav>