Skip to content

Commit

Permalink
fix(template): external feed URL not correctly parseed
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Feb 3, 2017
1 parent 90f6d0f commit 432371c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion _app/_includes/amsf/urls
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
{% comment %}
Feed URL
{% endcomment %}
{% capture amsf_feed_url %}{{ site.feed | relative_url | replace: '/index.xml', '/' }}{% endcapture %}
{% capture amsf_feed_url %}
{% include amsf/has_protocol url=site.feed %}
{% if amsf_has_protocol == null %}
{{ site.feed | relative_url | replace: '/index.xml', '/' }}
{% else %}
{{ site.feed }}
{% endif %}
{% endcapture %}

{% comment %}
Page title
Expand Down
2 changes: 1 addition & 1 deletion _app/_includes/themes/curtana/includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li><a href="{{ '/email-signup' | relative_url }}/">Email</a></li>
{% endif %}

<li><a href="{{ amsf_feed_url }}" title="Feed - Atom (The Atom Syndication Format)">Atom</a></li>
<li><a href="{{ amsf_feed_url | strip }}" title="Feed - Atom (The Atom Syndication Format)">Atom</a></li>
</ul>
</footer>
{% endunless %}
Expand Down
2 changes: 1 addition & 1 deletion _app/_includes/themes/curtana/includes/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="theme-color" content="{{ amsf_theme_color | strip }}">

<!-- Feed URL -->
<link rel="alternate" href="{{ amsf_feed_url }}" type="application/atom+xml">
<link rel="alternate" href="{{ amsf_feed_url | strip }}" type="application/atom+xml">

<!-- Site icons -->
{{ amsf_favicons }}
Expand Down

0 comments on commit 432371c

Please sign in to comment.