Add docs nav and side nav
authorZhong Jianxin <azuwis@gmail.com>
Tue, 24 May 2016 03:23:06 +0000 (11:23 +0800)
committerZhong Jianxin <azuwis@gmail.com>
Tue, 24 May 2016 06:04:48 +0000 (14:04 +0800)
_includes/docs_nav.html [new file with mode: 0644]
_includes/side_nav.html [new file with mode: 0644]
_includes/top_nav.html
_layouts/default.html

diff --git a/_includes/docs_nav.html b/_includes/docs_nav.html
new file mode 100644 (file)
index 0000000..793afae
--- /dev/null
@@ -0,0 +1,23 @@
+<h4>Documents</h4>
+<div class="panel">
+    <div id="toc" class="toc">
+        <ul class="sectlevel0">
+            <li{% if page.url == '/docs/' %} class="active"{% endif %}><a href="index.html">Overview</a></li>
+            <li{% if page.url == '/docs/config.html' %} class="active"{% endif %}><a href="config.html">Configuration</a></li>
+            <li{% if page.url == '/docs/ubus.html' %} class="active"{% endif %}><a href="ubus.html">uBus</a></li>
+            <li{% if page.url == '/docs/procd.html' %} class="active"{% endif %}><a href="procd.html">Procd</a></li>
+            <li{% if page.url == '/docs/uci.html' %} class="active"{% endif %}><a href="uci.html">UCI Document</a></li>
+            <ul class="sectlevel0">
+                <li{% if page.url == '/docs/uci_dnsmasq.html' %} class="active"{% endif %}><a href="uci_dnsmasq.html">DHCP</a></li>
+                <li{% if page.url == '/docs/uci_dropbear.html' %} class="active"{% endif %}><a href="uci_dropbear.html">Dropbear</a></li>
+                <li{% if page.url == '/docs/uci_firewall.html' %} class="active"{% endif %}><a href="uci_firewall.html">Firewall</a></li>
+                <li{% if page.url == '/docs/uci_fstab.html' %} class="active"{% endif %}><a href="uci_fstab.html">FSTab</a></li>
+                <li{% if page.url == '/docs/uci_net.html' %} class="active"{% endif %}><a href="uci_net.html">Network</a></li>
+                <li{% if page.url == '/docs/uci_qos.html' %} class="active"{% endif %}><a href="uci_qos.html">QoS</a></li>
+                <li{% if page.url == '/docs/uci_samba.html' %} class="active"{% endif %}><a href="uci_samba.html">Samba</a></li>
+                <li{% if page.url == '/docs/uci_system.html' %} class="active"{% endif %}><a href="uci_system.html">System</a></li>
+                <li{% if page.url == '/docs/uci_wireless.html' %} class="active"{% endif %}><a href="uci_wireless.html">Wireless</a></li>
+            </ul>
+        </ul>
+    </div>
+</div>
diff --git a/_includes/side_nav.html b/_includes/side_nav.html
new file mode 100644 (file)
index 0000000..737ac1e
--- /dev/null
@@ -0,0 +1,12 @@
+<h4>Links</h4>
+<div class="panel">
+    <ul class="fa-ul">
+        <li><i class="fa-li fa fa-download" aria-hidden="true"></i><a href="https://downloads.lede-project.org/snapshots/targets/">Downloads</a></li>
+        <li><i class="fa-li fa fa-code-fork" aria-hidden="true"></i><a href="https://git.lede-project.org/">Git Repos</a></li>
+        <li><i class="fa-li fa fa-github" aria-hidden="true"></i><a href="https://github.com/lede-project">Github</a></li>
+        <li><i class="fa-li fa fa-archive" aria-hidden="true"></i><a href="https://sources.lede-project.org/">Source Archives</a></li>
+        <li><i class="fa-li fa fa-envelope" aria-hidden="true"></i><a href="http://lists.infradead.org/mailman/listinfo/lede-dev">Mailing List</a></li>
+        <li><i class="fa-li fa fa-twitter" aria-hidden="true"></i><a href="https://twitter.com/lede_project">Twitter</a></li>
+        <li><i class="fa-li fa fa-comment" aria-hidden="true"></i><a href="irc://irc.freenode.org/lede-dev">IRC</a></li>
+    </ul>
+</div>
index 2aa702487ca85690f8f863fa6457b3aa063cfe3b..981e58273f15800b883aebd322001d894590f3c6 100644 (file)
@@ -4,5 +4,5 @@
 <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 contains '/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 ae683d782772e3d02bf4b12d86278d99d3781477..bbe3f6179549a4fa0080bb3f4c0f32aa76106ffb 100644 (file)
     <!-- Sidebar -->
 
     <aside class="large-3 columns">
-
-        <h4>Posts</h4>
-        <ul id="posts" class="posts nav">
-            {% for post in site.posts limit: 5 %}
-            <li><a href=".{{ post.url }}">{{ post.shortTitle }}</a></li>
-            {% endfor %}
-        </ul>
-
-        <div class="panel">
-            <h5>Featured</h5>
-
-            <p>Pork drumstick turkey fugiat. Tri-tip elit turducken pork chop in. Swine short ribs meatball irure bacon
-                nulla pork belly cupidatat meatloaf cow.</p>
-        </div>
-
+        {% if page.url contains '/docs/' %}
+            {% include docs_nav.html %}
+        {% else %}
+            {% include side_nav.html %}
+        {% endif %}
     </aside>
 
     <!-- End Sidebar -->