Add recent headlines to blog feed and posts · github/developer.github.com@e924602 · GitHub
Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit e924602

Browse files
committed
Add recent headlines to blog feed and posts
1 parent 58d0752 commit e924602

3 files changed

Lines changed: 65 additions & 25 deletions

File tree

layouts/blog.html

Lines changed: 7 additions & 3 deletions

layouts/headlines.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<h2>Recent Posts</h2>
2+
<ul class="headlines sidebar-module">
3+
<% @changes.first(8).each do |article| %>
4+
<li><a href="<%= article.path %>"><%= article[:title] %><br /><span class="date"><%= post_date article %></span></a></li>
5+
<% end %>
6+
</ul>

static/shared/css/documentation.css

Lines changed: 52 additions & 22 deletions

0 commit comments

Comments
 (0)