octopress-feeds 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f67d3569bee9cc4ff20dadc70c73c5e53e43325d
4
- data.tar.gz: b05e03df8716af6c9e976c9183a0eb9012ff8099
3
+ metadata.gz: 60983f3c3127540cf1d3793d155045c3dabde8fe
4
+ data.tar.gz: 895719b413c047564f3234273a8346c6b8887335
5
5
  SHA512:
6
- metadata.gz: 8a91e779a29298c6ac87286ae19e770430913515e042c9f9cd3295651509cddab0f7793c37080f7f5bf47a2d4f29a77c9d069c79d487d20a195e6f21dc0a870c
7
- data.tar.gz: 2214001d957adbf3ab3644377f19fb2f99cdb395dfa886694281899e93c542bc785ae2a07ade836c55b009a37881d9f0f237ee5336b776577b0548c20f1a9c11
6
+ metadata.gz: b489b2b14909a1d9731f8a81d0738683820b121879032393034475c4dd02dc2f8840081091b8bfbea860654b05e8f7e7e18ab6f2e8214091eca8767cbf4fda6f
7
+ data.tar.gz: fafc9a88c2506b9ad0260e538a41943409d93ab95821c745717e1f976d036b3f2748720f35d2386d1c185bd8bbbf102ede4008b701d991be0654c11e8c06d2ec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.3 (2015-01-24)
4
+ - Fix: Posts use canonical URLs in feeds.
5
+ - Improved `baseurl` support.
6
+
3
7
  ### 1.2.2 (2015-01-22)
4
8
  - Removed faux `set_lang` tag as it is now integrated into Octopress Ink.
5
9
 
@@ -1,29 +1,29 @@
1
1
  <title type="html">{% return post.title_text || post.title %}</title>
2
2
  {% if post.linkpost and plugins.feeds.external_links %}
3
3
  <link rel="alternate" type="text/html" href="{{ post.external-url }}"/>
4
- <link rel="related" type="text/html" href="{{ post.url | full_url }}"/>
4
+ <link rel="related" type="text/html" href="{{ post.url | canonical_url }}"/>
5
5
  {% else %}
6
- <link rel="alternate" type="text/html" href="{{ post.url | full_url }}"/>
6
+ <link rel="alternate" type="text/html" href="{{ post.url | canonical_url }}"/>
7
7
  {% endif %}
8
8
  <id>{{ post.id }}</id>
9
9
  <published>{{ post.date_xml }}</published>
10
10
  <updated>{% return post.date_updated_xml || post.date_xml %}</updated>
11
11
  <author>
12
12
  <name>{% return post.author || site.author %}</name>
13
- <uri>{% return post.author_site || site.url %}</uri>
13
+ <uri>{% if post.author_site %}{{ post.author_site }}{% else %}{{ site.url | join_url: site.baseurl }}{% endif %}</uri>
14
14
  </author>
15
- <content type="html" xml:base="{{ site.url }}" xml:lang="{% return site.lang || 'en' %}">
15
+ <content type="html" xml:base="{{ site.url | join_url: site.baseurl }}" xml:lang="{% return site.lang || 'en' %}">
16
16
  <![CDATA[
17
17
  {% if plugins.feeds.excerpts and post.linkpost == false %}
18
18
  {{ post.excerpt | full_urls }}
19
19
 
20
20
  {% if post.excerpted %}
21
- <p><a href="{{ post.url | full_url }}">Continue reading &rarr;</a></p>
21
+ <p><a href="{{ post.url | canonical_url }}">Continue reading &rarr;</a></p>
22
22
  {% endif %}
23
23
  {% else %}
24
24
  {{ post.content | full_urls }}
25
25
  {% if post.linkpost %}
26
- <p><a href="{{ post.url | full_url }}">&infin; Permalink</a></p>
26
+ <p><a href="{{ post.url | canonical_url }}">&infin; Permalink</a></p>
27
27
  {% endif %}
28
28
  {% endif %}
29
29
  ]]>
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <feed xmlns="http://www.w3.org/2005/Atom">
3
- <title>{% return site.name || site.title %}</title>
4
- <link rel="alternate" type="text/html" href="{{ site.url }}/"/>
5
- <link rel="self" type="application/atom+xml" href="{{ page.url | remove:'index.xml' | full_url }}"/>
6
- <id>{{ site.url }}</id>
3
+ <title>{{ site.name }}</title>
4
+ <link rel="alternate" type="text/html" href="{{ site.url | join_url: site.baseurl }}"/>
5
+ <link rel="self" type="application/atom+xml" href="{{ page.url | canonical_url }}"/>
6
+ <id>{{ site.url | join_url: site.baseurl }}</id>
7
7
  <updated>{% feed_updated_date %}</updated>
8
8
  <generator uri="http://octopress.org/">Octopress</generator>
9
9
  <language>{{ site.lang }}</language>
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Feeds
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink