can't resist
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
634 B

<nav>
<ul>
<li>
<%= link to: Routes.blog_path(@conn, :new) do %>
<span class="icon">
<%= IconView.icon(:add_outline) %>
</span>
<span>New Post</span>
<% end %>
</li>
</ul>
</nav>
<%= for post <- @posts do %>
<article class="card">
<div class="content trix-content">
<h3><%= post.title %></h3>
<%= unless Blog.Post.subtype(post) === :article do %>
<%= raw(post.content_html) %>
<% end %>
</div>
<footer>
<%= link "Edit", to: Routes.blog_path(@conn, :edit, post.id), class: "button" %>
</footer>
</article>
<% end %>