diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 22:29:43 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 22:29:43 +0200 |
| commit | c9a27bf83f2421fb794d053ea3e3bdc8bd18d155 (patch) | |
| tree | cbd8f36b67de9be5c7aa7f089d01d51feb26d62e /app/views/custom/partials/_article.html.erb | |
| parent | 8901ea8899d9a98d3cb53642fafafbc399ed2096 (diff) | |
articles partials now render the thumb of their headline media in the list
Diffstat (limited to 'app/views/custom/partials/_article.html.erb')
| -rw-r--r-- | app/views/custom/partials/_article.html.erb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/custom/partials/_article.html.erb b/app/views/custom/partials/_article.html.erb index b738ac78..8485698a 100644 --- a/app/views/custom/partials/_article.html.erb +++ b/app/views/custom/partials/_article.html.erb | |||
| @@ -3,5 +3,12 @@ | |||
| 3 | <div class="author_and_date"> | 3 | <div class="author_and_date"> |
| 4 | <%= date_for_page page %>, <%= author_for_page page %> | 4 | <%= date_for_page page %>, <%= author_for_page page %> |
| 5 | </div> | 5 | </div> |
| 6 | <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p> | 6 | <div class="article_partial_layout"> |
| 7 | <% if (headline = page.headline_asset) && headline.has_variant?(:thumb) %> | ||
| 8 | <div class="article_thumbnail"> | ||
| 9 | <%= link_to_path image_tag(headline.upload.url(:thumb), :alt => ""), page.node.unique_name %> | ||
| 10 | </div> | ||
| 11 | <% end %> | ||
| 12 | <p class="excerpt"><%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %></p> | ||
| 13 | </div> | ||
| 7 | </div> | 14 | </div> |
