1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 08:14:58 +02:00

add blog nav

This commit is contained in:
krircc
2018-01-07 18:14:51 +08:00
parent 0e64cbdf63
commit 14f4da6fd0
6 changed files with 72 additions and 16 deletions

29
_layouts/blog.liquid Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
{% include "head.liquid" %}
</head>
<body>
<header>
{% include "header.liquid" %}
</header>
<main>
<section class="docs">
<div class="inner">
<aside>
<p>2018</p>
<ul>
<li><a {%if route == "Blog-example"%}class="active"{%endif%} href="/blog/Blog-example.html">Blog Example</a></li>
</ul>
</aside>
<main>
{{ content }}
</main>
</div>
</section>
</main>
<footer>
{% include "footer.liquid" %}
</footer>
</body>
</html>

View File

@ -8,20 +8,20 @@
{% include "header.liquid" %}
</header>
<main>
<section class="docs">
<section class="blog">
<div class="inner">
<aside>
<p>Basics</p>
<ul>
<li><a {%if route == "Basics-example"%}class="active"{%endif%} href="/docs/Basics-example.html">Basics Example</a></li>
<li><a {%if route == "Basics-example"%}class="active"{%endif%} href="/blog/Basics-example.html">Basics Example</a></li>
</ul>
<p>Reference</p>
<ul>
<li><a {%if route == "Reference-example"%}class="active"{%endif%} href="/docs/Reference-example.html">Reference Example</a></li>
<li><a {%if route == "Reference-example"%}class="active"{%endif%} href="/blog/Reference-example.html">Reference Example</a></li>
</ul>
<p>Advance</p>
<ul>
<li><a {%if route == "Advance-example"%}class="active"{%endif%} href="/docs/Advance-example.html">Advance Example</a></li>
<li><a {%if route == "Advance-example"%}class="active"{%endif%} href="/blog/Advance-example.html">Advance Example</a></li>
</ul>
<p>Misc</p>
<ul>