From aeefab4eb333d47d9d0af936e9e3f59cf86815e1 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Sun, 14 Jun 2015 23:04:52 +0200 Subject: irssi-import --- _includes/header.html | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to '_includes/header.html') 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 %} -
  • - {{ node.title }} -
  • - {% else %} -
  • - {{ node.title }} -
  • - {% 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 %} +
  • + {{ node.title }} +
  • + {% else %} +
  • + {{ node.title }} +
  • + {% endif %} + {% endif %} {% endfor %} -
  • Scripts
  • -
  • Bugs
  • +
  • Themes
  • +
  • Scripts
  • +
  • Bugs
  • -- cgit v1.2.3