Permalink
Browse files

Add syndicates to article page, and remove from articles in list

  • Loading branch information...
adamdawkins committed Jan 22, 2019
1 parent c98af64 commit 61871d574b06f8fe7e3fd8b54a031b8e4451d9b8
Showing with 5 additions and 9 deletions.
  1. +0 −9 app/views/articles/_article.html.erb
  2. +5 −0 app/views/articles/show.html.erb
@@ -14,14 +14,5 @@
<%= blurb(article) %>
<%= link_to "Read on", long_post_path(article.params), class: 'post__cta' %>
</div>
<% if article.syndicates.any? %>
<footer>
<div class="syndication">
<% article.syndicates.each do |syndicate| %>
<p>Also articleed to <%= link_to syndicate.silo.name, syndicate.url, rel: "external syndication", class: "u-syndication" %>
<% end %>
</div>
</footer>
<% end %>
<a class="u-author" href="/"></a>
</article>
@@ -1,2 +1,7 @@
<h1 class="title"><%= @post.title %></h1>
<%= Kramdown::Document.new(@post.content).to_html.html_safe %>
<footer>
<small style="color: #666">
<%= render "syndicates", post: @post %>
</small>
</footer>

0 comments on commit 61871d5

Please sign in to comment.