add year to blog posts on home page, add max-h to statuses on home page

This commit is contained in:
sloane 2025-04-13 07:51:53 -04:00
parent 0bcb8f0768
commit 123f45c18d
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ

View file

@ -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 %>