feat: Style link log

This commit is contained in:
Robert Prehn 2024-03-14 04:36:06 -05:00
parent e6a61be86e
commit 68c81b2e76
No known key found for this signature in database

View file

@ -37,7 +37,7 @@ defmodule PreDotHn.LinkLog do
<%= for link <- @links do %>
<item>
<title><%= HtmlSanitizeEx.strip_tags(link["name"]) %></title>
<title>🔗 <%= HtmlSanitizeEx.strip_tags(link["name"]) %></title>
<description>
<%= link["summary"] %>
</description>
@ -63,7 +63,7 @@ defmodule PreDotHn.LinkLog do
~H"""
<%= for link <- @links do %>
<div style="margin-bottom: 1rem">
<a class="text-ellipsis overflow-hidden inline-block" style="max-width: 40ch" href={link["url"]}><%= link["name"] %></a>
<a class="text-ellipsis overflow-hidden inline-block" href={link["url"]}>🔗 <%= link["name"] %></a>
<%= {:safe, Markdown.render(link["summary"])} %>
</div>
<% end %>