Skip to content

Commit

Permalink
Add recently added section from #118
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Dec 5, 2017
1 parent 395cfcc commit a4b798c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ <h2>Featured Robots</H2>
{% assign tags_list = nil %}
</div>


<H2>Find a robot by category:</H2>
<div id="categories_grid" class="row flex-grid">
{% for category in site.top_level_categories %}
Expand All @@ -120,10 +121,19 @@ <H2>Find a robot by category:</H2>
{% endif %}
</a>
</div>
</article>
</article>
{% endfor %}
</div>

<H2>Recently Added</H2>
<div id="grid" class="row flex-grid">
{% assign dateSortedPosts = site.posts | sort: 'date' | reverse %}
{% for post in dateSortedPosts limit:2 %}
{% include box-item.html %}
{% endfor %}
</div>
<a href="/all"><H2>Browse all robots</H2></a>
</div>
<H2>All Entries (Random Order)</H2>
<a href="/all"><h3>Browse all in Alphabetical Order</h3></a>
<div id="grid" class="row flex-grid">
{% for post in site.posts %}
{% assign randomize = 'shuffle-order' %}
Expand Down

0 comments on commit a4b798c

Please sign in to comment.