Browse Source

fix: article margins

main
Inhji Y. 8 months ago
parent
commit
99bdd2c95a
  1. 34
      lib/mirage_web/live/note_live/show.html.leex

34
lib/mirage_web/live/note_live/show.html.leex

@ -11,21 +11,29 @@
return_to: Routes.note_show_path(@socket, :show, @note) %>
<% end %>
<header class="hero">
<h1><span class="id"><%= "##{@note.id}" %></span> <%= @note.title %></h1>
<p><time datetime="<%= @note.inserted_at %>"><%= Timex.from_now(@note.inserted_at) %></time> / <time datetime="<%= @note.updated_at %>"><%= Timex.from_now(@note.updated_at) %></time></p>
<p class="tags">
<%= for topic <- @note.topics do %>
<span class="tag"><%= topic.text %></span>
<% end %>
</p>
</header>
<article class="single">
<header class="hero">
<h1><span class="id"><%= "##{@note.id}" %></span> <%= @note.title %></h1>
<p><time datetime="<%= @note.inserted_at %>"><%= Timex.from_now(@note.inserted_at) %></time> / <time datetime="<%= @note.updated_at %>"><%= Timex.from_now(@note.updated_at) %></time></p>
<p class="tags">
<%= for topic <- @note.topics do %>
<span class="tag"><%= topic.text %></span>
<% end %>
</p>
</header>
<div class="width-full bg-content" phx-update="ignore" id="note-<%= @note.id %>">
<div class="content html">
<%= raw @note.content_html %>
<div class="width-full bg-content" phx-update="ignore" id="note-<%= @note.id %>">
<div class="content html">
<%= raw @note.content_html %>
</div>
</div>
</div>
<footer class="width-full bg-content">
<p class="tags">
<span class="tag">Views: <%= @note.views %></span>
</p>
</footer>
</article>
<%= if not Enum.empty?(@note.backlinks) do %>
<section class="backlinks">

Loading…
Cancel
Save