diff options
Diffstat (limited to 'source/tag.html.erb')
-rw-r--r-- | source/tag.html.erb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/tag.html.erb b/source/tag.html.erb new file mode 100644 index 0000000..c28a20b --- /dev/null +++ b/source/tag.html.erb @@ -0,0 +1,25 @@ +--- +pageable: true +per_page: 12 +--- +<h1>Articles tagged '<%= tagname %>'</h1> + +<% if paginate && num_pages > 1 %> + <p>Page <%= page_number %> of <%= num_pages %></p> + + <% if prev_page %> + <p><%= link_to 'Previous page', prev_page %></p> + <% end %> +<% end %> + +<ul> + <% page_articles.each_with_index do |article, i| %> + <li><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></li> + <% end %> +</ul> + +<% if paginate %> + <% if next_page %> + <p><%= link_to 'Next page', next_page %></p> + <% end %> +<% end %> |