15 lines
498 B
Plaintext
15 lines
498 B
Plaintext
|
<h1 class="u-text-center">Bit Goblin Blog</h1>
|
||
|
|
||
|
<% if @posts.length > 0 %>
|
||
|
<ul id="post-list">
|
||
|
<% @posts.each do |post| %>
|
||
|
<li>
|
||
|
<h4 class="post-title"><a href="/blog/post/<%= post.id %>"><%= post.title %></a></h4>
|
||
|
<p class="post-body"><%= truncate(raw(post.renderBody()), :length => 300, :escape => false) %></p>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
<% else %>
|
||
|
<p>I'm sorry, there don't appear to be any blog posts published at this time. Check back later!</p>
|
||
|
<% end %>
|