|
1 |
| -<% content_for :head do %> |
2 |
| - <%= rel_next_prev_link_tags @articles %> |
3 |
| -<% end %> |
4 |
| - |
5 |
| -<% content_for :auto_discovery do %> |
6 |
| - <%= auto_discovery_link_tag :atom, category_feed_path(@category.slug), title: page_title %> |
7 |
| - <%= auto_discovery_link_tag nil, category_feed_path(@category.slug, format: :json), { type: "application/json", title: page_title } %> |
8 |
| -<% end %> |
9 |
| - |
10 |
| -<div class='container'> |
11 |
| - <div class='row'> |
12 |
| - <div class='col-md-6 col-lg-8'> |
13 |
| - <header class='titles pb-3 mb-4 border-bottom'> |
14 |
| - <h1><%= link_to tt(:categories), :categories %></h1> |
15 |
| - <h2 class='fw-light'><%= @category.name %></h2> |
16 |
| - </header> |
17 |
| - |
18 |
| - <div class='h-feed'> |
19 |
| - <% @articles.each do |article| %> |
20 |
| - <%= render_themed 'articles/article', article: article %> |
21 |
| - <% end %> |
22 |
| - </div> |
23 |
| - |
24 |
| - <%= paginate @articles, theme: 'twitter-bootstrap-4' %> |
25 |
| - </div> |
26 |
| - |
27 |
| - <div class='col-md-6 col-lg-4'> |
28 |
| - <header class='titles pb-3 mb-2 border-bottom fw-normal'> |
29 |
| - <h1 class='fw-normal'>See also…</h1> |
30 |
| - <h2 class='fw-normal'>Explore The Archives</h2> |
31 |
| - </header> |
32 |
| - |
33 |
| - <div id='categories' class='mb-5 pt-3'> |
34 |
| - <h2 class='h4 fw-bold'><%= link_to tt(:categories_heading), '#categories' %></h2> |
35 |
| - <%= render_themed 'categories/list', categories: @categories %> |
36 |
| - </div> |
37 |
| - |
38 |
| - <div id='years' class='mb-5 pt-3'> |
39 |
| - <h2 class='h4 fw-bold'><%= link_to tt(:chronological_heading), '#years' %></h2> |
40 |
| - <%= render_themed 'years/list', years: @years %> |
41 |
| - </div> |
42 |
| - </div> |
43 |
| - </div><!-- .row --> |
44 |
| -</div><!-- .container --> |
| 1 | +<%= render_themed 'articles/list', |
| 2 | + articles: @articles, |
| 3 | + title: link_to(tt(:categories), :categories), |
| 4 | + subtitle: @category.name, |
| 5 | + feed_url: category_feed_path(@category.slug), |
| 6 | + json_feed_url: category_feed_path(@category.slug, format: :json) %> |
0 commit comments