Render canonical url (#632)

This commit is contained in:
Mac Siri 2018-09-11 17:40:04 -04:00 committed by Ben Halpern
parent 191588b34b
commit b946bb5530

View file

@ -135,7 +135,7 @@
<% if should_show_updated_on?(@article) %>
<span class="published-at updated-at"><em>Updated on <span itemprop="dateModified"><%= @article.edited_at.strftime("%b %d, %Y") if @article.edited_at %></span> </em></span>
<% elsif should_show_crossposted_on?(@article) %>
<span class="published-at updated-at"><em>Originally published at <a href="<%= @article.feed_source_url %>" style="color:#1395b8"><%= get_host_without_www(@article.feed_source_url) %></a> on <span class="posted-date-inline"><%= @article.published_at.strftime("%b %d, %Y") if @article.crossposted_at %></span></em></span>
<span class="published-at updated-at"><em>Originally published at <a href="<%= @article.canonical_url || @article.feed_source_url %>" style="color:#1395b8"><%= get_host_without_www(@article.canonical_url || @article.feed_source_url) %></a> on <span class="posted-date-inline"><%= @article.published_at.strftime("%b %d, %Y") if @article.crossposted_at %></span></em></span>
<% end %>
<span class="action-space" id="action-space"></span>
</h3>