summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kuttler <git@kuttler.eu>2015-02-12 01:26:02 +0100
committerNicolas Kuttler <git@kuttler.eu>2015-02-12 01:27:37 +0100
commit50362a666ecfbc15d6beec2a4a89346526ac2e69 (patch)
tree132d99677c8ed89b3b0d6efeacf285371a6a61d2
parent351012d57a9b05c7dbfd1b1865ed4d10ac9818df (diff)
downloadirssi.github.io-50362a666ecfbc15d6beec2a4a89346526ac2e69.zip
Loop through existing pages for navigation
Ignore the atom feed and the paginated news based on page names.
-rw-r--r--_includes/header.html20
-rw-r--r--atom.xml1
-rw-r--r--index.html1
3 files changed, 21 insertions, 1 deletions
diff --git a/_includes/header.html b/_includes/header.html
index 8363b10..b5d26a8 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -14,7 +14,25 @@
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
- <li class="active"><a href="/">Home</a></li>
+ <li><a href="/">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 %}
+ {% endfor %}
+ <li><a href="http://irssi.org/scripts">Scripts</a></li>
+ <li><a href="http://irssi.org/bugs">Bugs</a></li>
</ul>
</div>
</div>
diff --git a/atom.xml b/atom.xml
index fb3aa9e..3da40aa 100644
--- a/atom.xml
+++ b/atom.xml
@@ -1,5 +1,6 @@
---
layout: nil
+title: News Feed
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
diff --git a/index.html b/index.html
index e4d427d..90a7dc7 100644
--- a/index.html
+++ b/index.html
@@ -1,3 +1,4 @@
---
layout: home
+title: News
---