Add top navigator
authorZhong Jianxin <azuwis@gmail.com>
Sun, 15 May 2016 06:02:44 +0000 (14:02 +0800)
committerZhong Jianxin <azuwis@gmail.com>
Tue, 24 May 2016 06:04:37 +0000 (14:04 +0800)
_includes/top_nav.html [new file with mode: 0644]
_layouts/default.html

diff --git a/_includes/top_nav.html b/_includes/top_nav.html
new file mode 100644 (file)
index 0000000..2aa7024
--- /dev/null
@@ -0,0 +1,8 @@
+<li{% if page.url == '/' %} class="active"{% endif %}><a href="{{ site.prefix }}index.html">Home</a></li>
+<li{% if page.url == '/communication.html' %} class="active"{% endif %}><a href="{{ site.prefix }}communication.html">Communication</a></li>
+<li{% if page.url == '/rules.html' %} class="active"{% endif %}><a href="{{ site.prefix }}rules.html">Rules</a></li>
+<li{% if page.url == '/development.html' %} class="active"{% endif %}><a href="{{ site.prefix }}development.html">Development</a></li>
+<li{% if page.url == '/todo.html' %} class="active"{% endif %}><a href="{{ site.prefix }}todo.html">Todo</a></li>
+<li{% if page.url == '/downloads.html' %} class="active"{% endif %}><a href="{{ site.prefix }}downloads.html">Downloads</a></li>
+<li{% if page.url == '/docs/' %} class="active"{% endif %}><a href="{{ site.prefix }}docs/index.html">Documentation</a></li>
+<li{% if page.url == '/about.html' %} class="active"{% endif %}><a href="{{ site.prefix }}about.html">About</a></li>
index afbf32444921f57144dde6e7f33b59b3340d91c5..d8e337917f6fcba22895358912fe36348dbfb71d 100644 (file)
         <!-- Title Area -->
         <li class="name">
             <h1>
-                <a href="{{site.prefix}}">
+                <a href="#">
                     {{page.title}}
                 </a>
             </h1>
         </li>
         <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
     </ul>
+    <section class="top-bar-section">
+        <!-- Right Nav Section -->
+        <ul class="right">
+            {% include top_nav.html %}
+        </ul>
+    </section>
 </nav>
 <!-- End Nav -->