changeset 69:ee20b2a64fe5 kai

maint: some code refactoring.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 13 Oct 2016 17:43:50 +0200
parents 8224b565e6fd
children ca78967fd4c3
files _includes/header.html _layouts/default.html
diffstat 2 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/_includes/header.html	Thu Oct 13 17:42:18 2016 +0200
+++ b/_includes/header.html	Thu Oct 13 17:43:50 2016 +0200
@@ -8,12 +8,12 @@
 
 <ul class="topnav" id="myTopnav">
   <li><a href="{{ "/index.html" | relative_url }}">Home</a></li>
-  {% for mpage in site.pages %}
-    {% if mpage.menu %}
+  {% for p in site.pages %}
+    {% if p.menu %}
     <li>
-      <a href="{{ mpage.url | relative_url }}"
-        {% if page.url == mpage.url %} class="active"{% endif %}>
-      {{ mpage.title }}</a>
+      <a href="{{ p.url | relative_url }}"
+        {% if page.url == p.url %} class="active"{% endif %}>
+      {{ p.title }}</a>
     </li>
     {% endif %}
   {% endfor %}
--- a/_layouts/default.html	Thu Oct 13 17:42:18 2016 +0200
+++ b/_layouts/default.html	Thu Oct 13 17:43:50 2016 +0200
@@ -7,8 +7,6 @@
 
   {% include header.html %}
 
-
-
   <div class="page-content">
     {{ content }}
   </div>