]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Show ML summary on post view if generated
authorAidan Cornelius-Bell <[email protected]>
Thu, 9 Jan 2025 04:25:49 +0000 (14:55 +1030)
committerAidan Cornelius-Bell <[email protected]>
Thu, 9 Jan 2025 04:25:49 +0000 (14:55 +1030)
app/views/pubview/post.html.erb

index 346ad0fad995ef1a9c822a8f3f47432292bd367e..e3a39239aed7020a14f77a7d8ac7ca8bd502649e 100644 (file)
     <% end %>
        <%= raw @rendered_content %>
 
+       <% if @post.bookmark? && @post.summary? %>
+       <br><br>
+       <strong>Machine learning summary of original content via the Kagi Universal Summariser:</strong>
+       <blockquote>
+          <%= @post.summary %>
+       </blockquote>
+       <% end %>
+
  <% if @post.post_type != "bookmark" %>
      <%= render partial: "layouts/post_navigation" %>
     <hr class="foot_separator">