From 84d68ae04d8f1aab7571f0dcc8d689dd2a9f63f9 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Sun, 8 Dec 2024 17:49:31 +1030 Subject: [PATCH] added 'ai summaries' to the home page, bloody yikes folks. --- app/assets/stylesheets/application.css | 9 +++++++++ app/views/pubview/index.html.erb | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 4f0692b..c53781f 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -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; diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index 23e0232..f77ccfe 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -38,6 +38,11 @@ <%= link_to item.title, item.url, target: "_blank" %> ↗︎
<%= item.content %> + <% if item.summary? %> +
+ AI Summary<%= item.summary %> +
+ <% end %>
added <%= item.created_at.strftime('%l:%M%P on %d/%m/%y') if item.created_at.present? %> <%= link_to "❧", "/#{item.updated_at.year}/#{item.slug}", title: "permalink" %> -- 2.39.5