[reproducible-website] 01/02: Add support for pages that do not appear in the header bar.

Chris Lamb chris at chris-lamb.co.uk
Sat Mar 3 10:53:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository reproducible-website.

commit b00b1e3d546a4b60ed492d26e6afaf8bd55a531a
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Mar 3 10:50:13 2018 +0000

    Add support for pages that do not appear in the header bar.
---
 index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index e0f2835..3b15668 100644
--- a/index.html
+++ b/index.html
@@ -5,14 +5,14 @@ layout: home
 <nav>
   <div class="hide-on-mobiles">
     {% for page in sorted_pages %}
-      {% if page.title %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
+      {% if page.title and page.order >= 0 %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
     {% endfor %}
   </div>
   <div class="show-on-mobiles">
     <select onchange="if (this.value) window.location.href=this.value">
       <option value="">reproducible-builds.org</option>
       {% for page in sorted_pages %}
-        {% if page.title %}<option value="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</option>{% endif %}
+        {% if page.title and page.order >= 0 %}<option value="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</option>{% endif %}
       {% endfor %}
     </select>
   </div>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reproducible-website.git



More information about the Reproducible-commits mailing list