diff options
| author | Zhong Jianxin | 2016-05-24 03:23:06 +0000 |
|---|---|---|
| committer | Zhong Jianxin | 2016-05-24 06:04:48 +0000 |
| commit | 02dcd4d64bcf63fa236d8714c1ca05e448f23893 (patch) | |
| tree | 74c9e9af580635c011e6ff5df9969ed7cfa42375 | |
| parent | 28db28eadc14656192673eddde35c0160a6480bb (diff) | |
| download | web-02dcd4d64bcf63fa236d8714c1ca05e448f23893.tar.gz | |
Add docs nav and side nav
| -rw-r--r-- | _includes/docs_nav.html | 23 | ||||
| -rw-r--r-- | _includes/side_nav.html | 12 | ||||
| -rw-r--r-- | _includes/top_nav.html | 2 | ||||
| -rw-r--r-- | _layouts/default.html | 20 |
4 files changed, 41 insertions, 16 deletions
diff --git a/_includes/docs_nav.html b/_includes/docs_nav.html new file mode 100644 index 0000000..793afae --- /dev/null +++ b/_includes/docs_nav.html @@ -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 index 0000000..737ac1e --- /dev/null +++ b/_includes/side_nav.html @@ -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> diff --git a/_includes/top_nav.html b/_includes/top_nav.html index 2aa7024..981e582 100644 --- a/_includes/top_nav.html +++ b/_includes/top_nav.html @@ -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> diff --git a/_layouts/default.html b/_layouts/default.html index ae683d7..bbe3f61 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -62,21 +62,11 @@ <!-- 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 --> |