index.html 598 B

123456789101112131415161718
  1. <h1>skribaĵoj</h1>
  2. <% sorted_articles[0,8].each do |post| %>
  3. <article>
  4. <h2><a href="<%= post.path %>"><%= post[:title] %></a></h2>
  5. <time class="published"><%= post[:created_at] %></time><%
  6. excerpt_separator = post[:excerpt_separator]
  7. if excerpt_separator.nil?
  8. excerpt_separator = "\n\n"
  9. end
  10. excerpt = post.compiled_content.partition(excerpt_separator).first
  11. %><%= excerpt %><%
  12. if excerpt!=post.compiled_content %>
  13. <a href="<%= post.path %>" class="readmore">Legi plu...</a>
  14. <% end %></article>
  15. <% end %>
  16. <p class="archive"><a href="/arkivo">Arkivo de skribaĵoj</a></p>