Learn more about these different git repos.
Other Git URLs
9bb5ea0
@@ -35,7 +35,7 @@
{% endif %}
<div class="media-body">
{{constituent['long_form']}}
- {% if constituent['link'] %}
+ {% if constituent['link'] and constituent['link'] not in constituent['long_form'] %}
<a href="{{constituent['link']}}" target="_blank">
Read more <span class="glyphicon glyphicon-new-window"></span>
</a>
Some blog posts already have a link to themselves, in which case we display their link and our link. It looks clunky.
This checks to see if the long form content already has the link in it. If it does.. don't display a second duplicate link. If it does not, then be helpful and add a link of our own.
:thumbsup: for me
Pull-Request has been merged by ralph