Browse code

Now rss link in head will update correctly with changes to the config

Brandon Mathis authored on 28/07/2011 at 20:51:55
Showing 1 changed files
... ...
@@ -27,7 +27,8 @@
27 27
   <script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
28 28
   <link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
29 29
   <link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
30
-  <link href="{{ root_url }}/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml"/>
30
+  {% capture rss_url %}{% if site.subscribe_rss contains ':' %}{{ site.subscribe_rss }}{% else %}{{ root_url }}{{ site.subscribe_rss }}{% endif %}{% endcapture %}
31
+  <link href="{{ rss_url }}" rel="alternate" title="{{site.title}}" type="application/atom+xml"/>
31 32
   {% include google_analytics.html %}
32 33
   {% include google_plus_one.html %}
33 34
   {% include twitter_sharing.html %}