octopress-linkblog 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8efaff5112e216bd1fa25b543caf5b20f84be0f4
4
- data.tar.gz: 2c88cbeba8a2c6240cf9afb708808a128fa6f1c5
3
+ metadata.gz: 3edd62624df9964d0ae1b592713c156c44a6d013
4
+ data.tar.gz: 8a7d2e983e73939530e160cb254d03774f3056ed
5
5
  SHA512:
6
- metadata.gz: 80d63e08d52244c2ceb82ae757d9d6933ca0a96ad859f697f024d741c91a37f0941e0733025177ca7debcc072009010f3d8c046d8c93c01a7df2a972fa521062
7
- data.tar.gz: f4e401db51717ccdebcbff94dd1c2b3e596e2b4e1ecef53d8af79dd905e9f43989ac1b00237824c4361a8e2346a7c452d19b266dfad863f354ea329415ab1e7e
6
+ metadata.gz: 51807233008ae74450cf9db88eb89ffddbf741daa6c7902df14c88f7ae40b70c024c4b7b73ef0827624e14c0a3f85a9ede50df9736563841b2fefc0240d81d43
7
+ data.tar.gz: b74b09a13286af13284b214e21dff33cceca463c033aef8735617de05f923ff55ee9d4a48a57d2eb31084172dfe8d594873d376408960b35e77803feea1db673
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.0.1 - 2015-01-06
4
+ - Fix: Added support for site baseurl configuration.
5
+
3
6
  ### 2.0.0 - 2015-01-06
4
7
 
5
8
  - Breaking: Configuration is now set in _config.yml beneath the `linkblog` key.
@@ -47,12 +47,14 @@ module Octopress
47
47
  config = Linkblog.config['post']
48
48
  end
49
49
 
50
+ post_url = File.join('/',post.site.config['baseurl'], post.url)
51
+
50
52
  post.data['title_text'] = Linkblog.post_title_text(post.data['title'], config)
51
53
  post.data['title_html'] = Linkblog.post_title_html(post.data['title'], config)
52
- post.data['title_url'] = linkpost || post.url
54
+ post.data['title_url'] = linkpost || post_url
53
55
  post.data['linkpost'] = !linkpost.nil?
54
56
  post.data['title_link'] = Linkblog.post_title_link(post.data)
55
- post.data['permalink'] = Linkblog.post_link(Linkblog.config['permalink_label'], post.url, 'article-permalink')
57
+ post.data['permalink'] = Linkblog.post_link(Linkblog.config['permalink_label'], post_url, 'article-permalink')
56
58
 
57
59
  post
58
60
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Linkblog
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
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.0
4
+ version: 2.0.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-hooks
@@ -101,32 +101,12 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".clash.yml"
105
- - ".gitignore"
106
- - ".travis.yml"
107
104
  - CHANGELOG.md
108
- - Gemfile
109
105
  - LICENSE.txt
110
106
  - README.md
111
- - Rakefile
112
107
  - lib/octopress-linkblog.rb
113
108
  - lib/octopress-linkblog/configuration.rb
114
109
  - lib/octopress-linkblog/version.rb
115
- - octopress-linkblog.gemspec
116
- - test/Gemfile
117
- - test/_config.yml
118
- - test/_expected/2014/05/25/awesome-things.html
119
- - test/_expected/2014/06/25/some-linkpost.html
120
- - test/_expected/articles.html
121
- - test/_expected/linkposts.html
122
- - test/_expected/posts.html
123
- - test/_includes/post.html
124
- - test/_posts/2014-05-25-awesome-things.html
125
- - test/_posts/2014-05-25-awesome-things.markdown
126
- - test/_posts/2014-06-25-some-linkpost.html
127
- - test/articles.html
128
- - test/linkposts.html
129
- - test/posts.html
130
110
  homepage: https://github.com/octopress/linkblog
131
111
  licenses:
132
112
  - MIT
@@ -151,18 +131,4 @@ rubygems_version: 2.2.2
151
131
  signing_key:
152
132
  specification_version: 4
153
133
  summary: Add linkblog features to your Jekyll site.
154
- test_files:
155
- - test/Gemfile
156
- - test/_config.yml
157
- - test/_expected/2014/05/25/awesome-things.html
158
- - test/_expected/2014/06/25/some-linkpost.html
159
- - test/_expected/articles.html
160
- - test/_expected/linkposts.html
161
- - test/_expected/posts.html
162
- - test/_includes/post.html
163
- - test/_posts/2014-05-25-awesome-things.html
164
- - test/_posts/2014-05-25-awesome-things.markdown
165
- - test/_posts/2014-06-25-some-linkpost.html
166
- - test/articles.html
167
- - test/linkposts.html
168
- - test/posts.html
134
+ test_files: []
data/.clash.yml DELETED
@@ -1,2 +0,0 @@
1
- build: true
2
- compare: _expected _site
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- *.bundle
19
- *.so
20
- *.o
21
- *.a
22
- mkmf.log
23
- _site
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 1.9.3
5
- script: bundle exec clash test
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in octopress_render_tag.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
@@ -1,32 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'octopress-linkblog/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "octopress-linkblog"
8
- spec.version = Octopress::Linkblog::VERSION
9
- spec.authors = ["Brandon Mathis"]
10
- spec.email = ["brandon@imathis.com"]
11
- spec.summary = %q{Add linkblog features to your Jekyll site.}
12
- spec.description = %q{Add linkblog features to your Jekyll site.}
13
- spec.homepage = "https://github.com/octopress/linkblog"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_runtime_dependency "octopress-hooks", "~> 2.1"
22
- spec.add_runtime_dependency "titlecase"
23
-
24
- spec.add_development_dependency "bundler", "~> 1.6"
25
- spec.add_development_dependency "rake"
26
- spec.add_development_dependency "clash"
27
-
28
- if RUBY_VERSION >= "2"
29
- spec.add_development_dependency "pry-byebug"
30
- end
31
-
32
- end
data/test/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: "../"
data/test/_config.yml DELETED
@@ -1,18 +0,0 @@
1
- # Site settings
2
- title: Your awesome title
3
- email: your-email@domain.com
4
- baseurl: ""
5
- url: "http://yourdomain.com"
6
- timezone: UTC
7
-
8
- exclude:
9
- - Gemfile*
10
-
11
- # Build settings
12
- markdown: kramdown
13
- gems:
14
- - octopress-linkblog
15
-
16
- linkblog:
17
- post:
18
- marker: ★
@@ -1 +0,0 @@
1
- <p>Hey Guys.</p>
@@ -1 +0,0 @@
1
- Sup.
@@ -1,29 +0,0 @@
1
-
2
- Titles:
3
- normal: Some Awesome Post
4
- html: <span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post
5
- text: ★ Some Awesome Post
6
-
7
- Urls:
8
- normal: /2014/05/25/awesome-things.html
9
- title_url: /2014/05/25/awesome-things.html
10
- title_link: <a href='/2014/05/25/awesome-things.html' class='article-link'><span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post</a>
11
- permalink: <a href='/2014/05/25/awesome-things.html' class='article-permalink'>Permalink</a>
12
-
13
- linkpost: false
14
-
15
-
16
- Titles:
17
- normal: Some Awesome Post
18
- html: <span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post
19
- text: ★ Some Awesome Post
20
-
21
- Urls:
22
- normal: /2014/05/25/awesome-things.html
23
- title_url: /2014/05/25/awesome-things.html
24
- title_link: <a href='/2014/05/25/awesome-things.html' class='article-link'><span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post</a>
25
- permalink: <a href='/2014/05/25/awesome-things.html' class='article-permalink'>Permalink</a>
26
-
27
- linkpost: false
28
-
29
-
@@ -1,18 +0,0 @@
1
- Linkposts You Guys
2
- Linkposts You&nbsp;Guys
3
-
4
-
5
- Titles:
6
- normal: Some Link Post
7
- html: Some Link&nbsp;Post&nbsp;<span class='post-marker post-marker-after'>→</span>
8
- text: Some Link Post →
9
-
10
- Urls:
11
- normal: /2014/06/25/some-linkpost.html
12
- title_url: http://timecube.com
13
- title_link: <a href='http://timecube.com' class='article-link linkpost'>Some Link&nbsp;Post&nbsp;<span class='post-marker post-marker-after'>→</span></a>
14
- permalink: <a href='/2014/06/25/some-linkpost.html' class='article-permalink'>Permalink</a>
15
-
16
- linkpost: true
17
-
18
-
@@ -1,43 +0,0 @@
1
-
2
- Titles:
3
- normal: Some Link Post
4
- html: Some Link&nbsp;Post&nbsp;<span class='post-marker post-marker-after'>→</span>
5
- text: Some Link Post →
6
-
7
- Urls:
8
- normal: /2014/06/25/some-linkpost.html
9
- title_url: http://timecube.com
10
- title_link: <a href='http://timecube.com' class='article-link linkpost'>Some Link&nbsp;Post&nbsp;<span class='post-marker post-marker-after'>→</span></a>
11
- permalink: <a href='/2014/06/25/some-linkpost.html' class='article-permalink'>Permalink</a>
12
-
13
- linkpost: true
14
-
15
-
16
- Titles:
17
- normal: Some Awesome Post
18
- html: <span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post
19
- text: ★ Some Awesome Post
20
-
21
- Urls:
22
- normal: /2014/05/25/awesome-things.html
23
- title_url: /2014/05/25/awesome-things.html
24
- title_link: <a href='/2014/05/25/awesome-things.html' class='article-link'><span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post</a>
25
- permalink: <a href='/2014/05/25/awesome-things.html' class='article-permalink'>Permalink</a>
26
-
27
- linkpost: false
28
-
29
-
30
- Titles:
31
- normal: Some Awesome Post
32
- html: <span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post
33
- text: ★ Some Awesome Post
34
-
35
- Urls:
36
- normal: /2014/05/25/awesome-things.html
37
- title_url: /2014/05/25/awesome-things.html
38
- title_link: <a href='/2014/05/25/awesome-things.html' class='article-link'><span class='post-marker post-marker-before'>★</span>&nbsp;Some Awesome&nbsp;Post</a>
39
- permalink: <a href='/2014/05/25/awesome-things.html' class='article-permalink'>Permalink</a>
40
-
41
- linkpost: false
42
-
43
-
@@ -1,12 +0,0 @@
1
- Titles:
2
- normal: {{ post.title }}
3
- html: {{ post.title_html }}
4
- text: {{ post.title_text }}
5
-
6
- Urls:
7
- normal: {{ post.url }}
8
- title_url: {{ post.title_url }}
9
- title_link: {{ post.title_link }}
10
- permalink: {{ post.permalink }}
11
-
12
- linkpost: {{ post.linkpost }}
@@ -1,5 +0,0 @@
1
- ---
2
- title: Some awesome post
3
- ---
4
-
5
- Hey Guys.
@@ -1,5 +0,0 @@
1
- ---
2
- title: Some awesome post
3
- ---
4
-
5
- Hey Guys.
@@ -1,6 +0,0 @@
1
- ---
2
- title: Some link post
3
- external-url: http://timecube.com
4
- ---
5
-
6
- Sup.
data/test/articles.html DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- ---
3
-
4
- {% for post in site.articles %}
5
- {% include post.html %}
6
- {% endfor %}
data/test/linkposts.html DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- title: linkposts you guys
3
- ---
4
-
5
- {{ page.title }}
6
- {{ page.title_html }}
7
-
8
- {% for post in site.linkposts %}
9
- {% include post.html %}
10
- {% endfor %}
data/test/posts.html DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- ---
3
-
4
- {% for post in site.posts %}
5
- {% include post.html %}
6
- {% endfor %}