Paul O’Shannessy
11 years ago
5 changed files with 63 additions and 21 deletions
@ -1,10 +1,11 @@ |
|||||
<div class="nav-docs"> |
<div class="nav-docs nav-blog"> |
||||
<div class="nav-docs-section"> |
<div class="nav-docs-section"> |
||||
<h3>Recent posts</h3> |
<h3>Recent posts</h3> |
||||
<ul> |
<ul> |
||||
{% for post in site.posts %} |
{% for post in site.posts limit:10 %} |
||||
<li><a href="/react{{ post.url }}"{% if page.title == post.title %} class="active"{% endif %}>{{ post.title }}</a></li> |
<li><a href="/react{{ post.url }}"{% if page.title == post.title %} class="active"{% endif %}>{{ post.title }}</a></li> |
||||
{% endfor %} |
{% endfor %} |
||||
|
<li><a href="/react/blog/all.html">All posts ...</a></li> |
||||
</ul> |
</ul> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
@ -0,0 +1,15 @@ |
|||||
|
--- |
||||
|
title: Blog |
||||
|
layout: default |
||||
|
sectionid: blog |
||||
|
id: all-posts |
||||
|
--- |
||||
|
|
||||
|
<section class="content wrap documentationContent nosidebar"> |
||||
|
<div class="inner-content"> |
||||
|
<h1>All Posts</h1> |
||||
|
{% for page in site.posts %} |
||||
|
<p><strong><a href="/react{{ page.url }}">{{ page.title }}</a></strong> on {{ page.date | date: "%B %e, %Y" }} by {{ page.author }}</p> |
||||
|
{% endfor %} |
||||
|
</div> |
||||
|
</section> |
Loading…
Reference in new issue