diff options
author | Ailin Nemui <ailin@linux.site> | 2015-06-14 23:04:52 +0200 |
---|---|---|
committer | Ailin Nemui <ailin@linux.localdomain> | 2015-07-01 22:42:55 +0200 |
commit | aeefab4eb333d47d9d0af936e9e3f59cf86815e1 (patch) | |
tree | 993b072fc34e9449e1caac6d0e763cf5dde92a9e /_includes/header.html | |
parent | 2c5262dcacc95f80f8c4736e1210ced4b609063e (diff) | |
download | irssi.github.io-aeefab4eb333d47d9d0af936e9e3f59cf86815e1.zip |
irssi-import
Diffstat (limited to '_includes/header.html')
-rw-r--r-- | _includes/header.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/_includes/header.html b/_includes/header.html index dfe0a4d..ca15f93 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -18,21 +18,25 @@ {% 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="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.title }}</a> - </li> - {% else %} - <li> - <a href="{{ site.baseurl }}{{ 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> |