From 123f45c18dfd37b367638b95519ce4f6b7560263 Mon Sep 17 00:00:00 2001 From: sloane <git@sloanelybutsurely.com> Date: Sun, 13 Apr 2025 07:51:53 -0400 Subject: [PATCH] add year to blog posts on home page, add max-h to statuses on home page --- lib/web/controllers/page_html/home.html.heex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/web/controllers/page_html/home.html.heex b/lib/web/controllers/page_html/home.html.heex index abf61e3..12e1361 100644 --- a/lib/web/controllers/page_html/home.html.heex +++ b/lib/web/controllers/page_html/home.html.heex @@ -18,7 +18,7 @@ > <h3 class="p-name u-url">{blog.title}</h3> <div class="text-gray-500 dt-published"> - <.timex value={Core.Posts.publish_date_time(blog)} format="{Mfull} {D}" /> + <.timex value={Core.Posts.publish_date_time(blog)} format="{Mfull} {D}, {YYYY}" /> </div> </.link> </article> @@ -44,7 +44,7 @@ navigate={~p"/status/#{status.id}"} class="block border-t first:border-t-0 border-gray-200 hover:bg-gray-50 u-url" > - <article class="h-entry py-4"> + <article class="h-entry py-4 max-h-80 overflow-hidden relative"> <div class="flex items-start"> <div class="flex-shrink-0 pl-3 pr-2"> <%= if Core.Author.get(:avatar_url) do %> @@ -86,6 +86,7 @@ </div> </div> </div> + <div class="w-full h-4 absolute bottom-0 bg-gradient-to-t from-white" /> </article> </.link> <% end %>