summaryrefslogtreecommitdiff
path: root/_includes/header.html
blob: a87fae95217675258cbc23534bfb32ce193804a4 (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
44
45
46
47
48
49
50
<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 == "/news/index.html" %} class="active"{% endif %}><a href="{{ site.baseurl }}/news">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 href="//irssi-import.github.io/themes/">Themes</a></li>
                <li><a href="http://scripts.irssi.org/">Scripts</a></li>
                <li><a href="https://github.com/irssi/irssi/issues">Bugs</a></li>
                <li class="hidden-lg"><a href="{{ site.baseurl }}/gsearch/">Search</a></li>
            </ul>
            <form class="navbar-form navbar-right gsearch-form hidden-xs hidden-sm hidden-md" role="search" action="{{ site.baseurl }}/gsearch/">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search" name="q" required>
                </div>
                <button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i></button>
            </form>
        </div>
    </div>
</nav>