The library for web and native user interfaces.
Adding a left menu navigation
Vjeux committed
Jun 3, 2013 at 01:03 UTC
245f50112065f26cd9b5554deb124110cad31303
4 files changed
+15
-3
docs/_includes/blog_post.html
+1
-1
@@ -1,4 +1,4 @@
1
-<h2><a href="/react{{ page.url }}">{{ page.title }}</a></h2>
1
+<h1><a href="/react{{ page.url }}">{{ page.title }}</a></h1>
2
<p class="meta">{{ page.date | date_to_string }} by {{ page.author }}</p>
3
4
<div id="post">
docs/_includes/nav_blog.html
new
+10
@@ -0,0 +1,10 @@
1
+<div class="nav-docs">
2
+ <div class="nav-docs-section">
3
+ <h3>Recent posts</h3>
4
+ <ul>
5
+ {% for post in site.posts %}
6
+ <li><a href="/react{{ post.url }}"{% if page.title == post.title %} class="active"{% endif %}>{{ post.title }}</a></li>
7
+ {% endfor %}
8
+ </ul>
9
+ </div>
10
+</div>
\ No newline at end of file
docs/_layouts/blog.html
+2
-1
@@ -3,7 +3,8 @@ layout: default
3
sectionid: blog
4
---
5
6
-<section class="content wrap nosidebar">
6
+<section class="content wrap documentationContent">
7
+ {% include nav_blog.html %}
8
<div class="inner-content">
9
{% for page in site.posts %}
10
{% include blog_post.html %}
docs/_layouts/post.html
+2
-1
@@ -3,7 +3,8 @@ layout: default
3
sectionid: blog
4
---
5
6
-<section class="content wrap nosidebar">
6
+<section class="content wrap documentationContent">
7
+ {% include nav_blog.html %}
8
<div class="inner-content">
9
{% include blog_post.html %}
10
</div>