Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve the way the subscribe links are generated

- Be consistent with how we get the site's URL
- Don't display the RSS subscribe link if we don't have it defined
  • Loading branch information...
commit f94ad242fe9f216651333352b982738bcd1bdf2e 1 parent 7c11807
Dan Fairs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mingus/templates/blog/post_detail.html
View
4 mingus/templates/blog/post_detail.html
@@ -67,10 +67,12 @@
<div class="subscribe clearfix">
<ul>
- <li><a href="http://twitter.com/?status=reading: {{ object.title }} - {{ SITE_URL }}{{ object.get_absolute_url }}" target="_blank">{% trans "Twitter this" %}</a></li>
+ <li><a href="http://twitter.com/?status=reading: {{ object.title }} - http://{{ BLOG_SETTINGS.site.domain }}{{ object.get_absolute_url }}" target="_blank">{% trans "Twitter this" %}</a></li>
<li><a href="http://www.reddit.com/submit?title={{ object.title }}&url=http://{{ BLOG_SETTINGS.site.domain }}{{ object.get_absolute_url }}" target="_blank">{% trans "Reddit this" %}</a></li>
<li><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;">{% trans "Add to Delicious" %}</a></li>
+ {% if FEED_SUBSCRIBE_RSS %}
<li><a href="{{ FEED_SUBSCRIBE_RSS }}">{% trans "Subscribe RSS" %}</a></li>
+ {% endif %}
</ul>
</div>
<!-- post -->
Please sign in to comment.
Something went wrong with that request. Please try again.