octopress-linkblog 2.0.1 → 2.0.2

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: 3edd62624df9964d0ae1b592713c156c44a6d013
4
- data.tar.gz: 8a7d2e983e73939530e160cb254d03774f3056ed
3
+ metadata.gz: e41318fd75019724cd086ead1449567e77230b09
4
+ data.tar.gz: f05a9fa475ca8533ada79fb58cdecdb03d09a271
5
5
  SHA512:
6
- metadata.gz: 51807233008ae74450cf9db88eb89ffddbf741daa6c7902df14c88f7ae40b70c024c4b7b73ef0827624e14c0a3f85a9ede50df9736563841b2fefc0240d81d43
7
- data.tar.gz: b74b09a13286af13284b214e21dff33cceca463c033aef8735617de05f923ff55ee9d4a48a57d2eb31084172dfe8d594873d376408960b35e77803feea1db673
6
+ metadata.gz: b12de52f59bb2d96532b43c0cb26f659fc05d7c4c7a8e98bd197a1041fd895544270feed70c7c9f72f2ae3522306925bbd7afe88df41ed25a3af6579a61a3ba5
7
+ data.tar.gz: 4b189dae34512926036c115e6b544647708bac6c07c32f84c265fe079d1cadfca62c6ff8c6182ac905a00a484a69dddbf52c1154be5324c5f7f0c1c10209854e
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.0.2 - 2015-04-29
4
+ - Minor: Now reading `external_url` as default configuration (still supporting `external-url`).
5
+
3
6
  ### 2.0.1 - 2015-01-06
4
7
  - Fix: Added support for site baseurl configuration.
5
8
 
data/README.md CHANGED
@@ -27,7 +27,7 @@ Then install the gem with Bundler
27
27
  Then add the gem to your Jekyll configuration.
28
28
 
29
29
  gems:
30
- -octopress-linkblog
30
+ - octopress-linkblog
31
31
 
32
32
  ## Usage
33
33
 
@@ -48,7 +48,7 @@ Here is an example. Given the following YAML front-matter:
48
48
  ```
49
49
  ---
50
50
  title: cats are awesome
51
- external-url: http://cats.example.com
51
+ external_url: http://cats.example.com
52
52
  ---
53
53
  ```
54
54
 
@@ -72,7 +72,7 @@ Note: the `<a>` in this demo has been shortened, but it will contain the `title_
72
72
  In addition, the site payload will have two new post arrays:
73
73
 
74
74
  - `site.articles` - Will contain standard posts only.
75
- - `site.linkposts` - Will contain only posts with an `external-url`
75
+ - `site.linkposts` - Will contain only posts with an `external_url`
76
76
 
77
77
  This may have many uses, but one in particular is the option to allow RSS feeds for each type
78
78
  of post.
@@ -37,7 +37,8 @@ module Octopress
37
37
  end
38
38
 
39
39
  def add_post_vars(post)
40
- linkpost = post.data['external-url']
40
+ # Grab external url from post data, reading dashed value for legacy pattern support
41
+ linkpost = post.data['external_url'] || post.data['external-url']
41
42
 
42
43
  post.data['title'].titlecase! if Linkblog.config['titlecase']
43
44
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Linkblog
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-linkblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
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-03-23 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.2.2
130
+ rubygems_version: 2.4.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Add linkblog features to your Jekyll site.