add year to blog posts on home page, add max-h to statuses on home page
This commit is contained in:
parent
0bcb8f0768
commit
123f45c18d
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
>
|
>
|
||||||
<h3 class="p-name u-url">{blog.title}</h3>
|
<h3 class="p-name u-url">{blog.title}</h3>
|
||||||
<div class="text-gray-500 dt-published">
|
<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>
|
</div>
|
||||||
</.link>
|
</.link>
|
||||||
</article>
|
</article>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
navigate={~p"/status/#{status.id}"}
|
navigate={~p"/status/#{status.id}"}
|
||||||
class="block border-t first:border-t-0 border-gray-200 hover:bg-gray-50 u-url"
|
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 items-start">
|
||||||
<div class="flex-shrink-0 pl-3 pr-2">
|
<div class="flex-shrink-0 pl-3 pr-2">
|
||||||
<%= if Core.Author.get(:avatar_url) do %>
|
<%= if Core.Author.get(:avatar_url) do %>
|
||||||
|
@ -86,6 +86,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="w-full h-4 absolute bottom-0 bg-gradient-to-t from-white" />
|
||||||
</article>
|
</article>
|
||||||
</.link>
|
</.link>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue