From c9a27bf83f2421fb794d053ea3e3bdc8bd18d155 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 23 Jul 2026 22:29:43 +0200 Subject: articles partials now render the thumb of their headline media in the list --- app/views/custom/partials/_article.html.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/views/custom') 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 @@
<%= date_for_page page %>, <%= author_for_page page %>
-

<%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %>

+
+ <% if (headline = page.headline_asset) && headline.has_variant?(:thumb) %> +
+ <%= link_to_path image_tag(headline.upload.url(:thumb), :alt => ""), page.node.unique_name %> +
+ <% end %> +

<%= page.abstract %> <%= link_to_path t(:more), page.node.unique_name %>

+
-- cgit v1.3