]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
added 'ai summaries' to the home page, bloody yikes folks.
authorAidan Cornelius-Bell <[email protected]>
Sun, 8 Dec 2024 07:19:31 +0000 (17:49 +1030)
committerAidan Cornelius-Bell <[email protected]>
Sun, 8 Dec 2024 07:19:31 +0000 (17:49 +1030)
app/assets/stylesheets/application.css
app/views/pubview/index.html.erb

index 4f0692b4ef4410354ee0ab15ebcfce7b5a7fd1e6..c53781f3ce7f1752f1706ea767fa4d90a0fe42d8 100644 (file)
@@ -311,6 +311,15 @@ footer p {
     padding: 20px;
 }
 
+.ai-summary {
+    transform: rotate(270deg);
+    margin-left: -5em;
+    padding-right: 2em;
+    display: inline-block;
+    clear: both;
+    text-indent: -34px;
+}
+
 .aidans_arrow {
     max-width: 70px;
     float: right;
index 23e0232476560ba44d5c06768f755ba3604bde18..f77ccfe4d8636e11be93bb840b51f7b869823a62 100644 (file)
             <span class="post-link">
               <%= link_to item.title, item.url, target: "_blank" %>
               <abbr title="external link">&nearr;&#xFE0E;</abbr> <br><span class="comment-separator">&rdsh;</span> <span class="bookmark-comment"><%= item.content %></span>
+              <% if item.summary? %>
+              <blockquote class="excerpt">
+                  <span class="ai-summary">AI Summary</span><span class="ai-summary-block"><%= item.summary %>
+              </blockquote>
+              <% end %>
             </span>
             <span class="dash">&mdash;</span>
             <span class="meta">added <%= item.created_at.strftime('%l:%M%P on %d/%m/%y') if item.created_at.present? %> <span class="lowlight"><%= link_to "❧", "/#{item.updated_at.year}/#{item.slug}", title: "permalink" %></a></span>