From: Aidan Cornelius-Bell Date: Thu, 9 Jan 2025 04:25:49 +0000 (+1030) Subject: Show ML summary on post view if generated X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=dadddb7ed74680b084713be3e96727185ffbb5ad;p=arelpe.git Show ML summary on post view if generated --- diff --git a/app/views/pubview/post.html.erb b/app/views/pubview/post.html.erb index 346ad0f..e3a3923 100644 --- a/app/views/pubview/post.html.erb +++ b/app/views/pubview/post.html.erb @@ -40,6 +40,14 @@ <% end %> <%= raw @rendered_content %> + <% if @post.bookmark? && @post.summary? %> +

+ Machine learning summary of original content via the Kagi Universal Summariser: +
+ <%= @post.summary %> +
+ <% end %> + <% if @post.post_type != "bookmark" %> <%= render partial: "layouts/post_navigation" %>