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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-linkblog.rb +4 -2
- data/lib/octopress-linkblog/version.rb +1 -1
- metadata +3 -37
- data/.clash.yml +0 -2
- data/.gitignore +0 -23
- data/.travis.yml +0 -5
- data/Gemfile +0 -4
- data/Rakefile +0 -2
- data/octopress-linkblog.gemspec +0 -32
- data/test/Gemfile +0 -3
- data/test/_config.yml +0 -18
- data/test/_expected/2014/05/25/awesome-things.html +0 -1
- data/test/_expected/2014/06/25/some-linkpost.html +0 -1
- data/test/_expected/articles.html +0 -29
- data/test/_expected/linkposts.html +0 -18
- data/test/_expected/posts.html +0 -43
- data/test/_includes/post.html +0 -12
- data/test/_posts/2014-05-25-awesome-things.html +0 -5
- data/test/_posts/2014-05-25-awesome-things.markdown +0 -5
- data/test/_posts/2014-06-25-some-linkpost.html +0 -6
- data/test/articles.html +0 -6
- data/test/linkposts.html +0 -10
- data/test/posts.html +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3edd62624df9964d0ae1b592713c156c44a6d013
|
|
4
|
+
data.tar.gz: 8a7d2e983e73939530e160cb254d03774f3056ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51807233008ae74450cf9db88eb89ffddbf741daa6c7902df14c88f7ae40b70c024c4b7b73ef0827624e14c0a3f85a9ede50df9736563841b2fefc0240d81d43
|
|
7
|
+
data.tar.gz: b74b09a13286af13284b214e21dff33cceca463c033aef8735617de05f923ff55ee9d4a48a57d2eb31084172dfe8d594873d376408960b35e77803feea1db673
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-linkblog.rb
CHANGED
|
@@ -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 ||
|
|
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'],
|
|
57
|
+
post.data['permalink'] = Linkblog.post_link(Linkblog.config['permalink_label'], post_url, 'article-permalink')
|
|
56
58
|
|
|
57
59
|
post
|
|
58
60
|
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.
|
|
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-
|
|
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
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
data/Gemfile
DELETED
data/Rakefile
DELETED
data/octopress-linkblog.gemspec
DELETED
|
@@ -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
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> Some Awesome 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> Some Awesome 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> Some Awesome 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> Some Awesome 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 Guys
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Titles:
|
|
6
|
-
normal: Some Link Post
|
|
7
|
-
html: Some Link Post <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 Post <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
|
-
|
data/test/_expected/posts.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Titles:
|
|
3
|
-
normal: Some Link Post
|
|
4
|
-
html: Some Link Post <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 Post <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> Some Awesome 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> Some Awesome 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> Some Awesome 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> Some Awesome Post</a>
|
|
39
|
-
permalink: <a href='/2014/05/25/awesome-things.html' class='article-permalink'>Permalink</a>
|
|
40
|
-
|
|
41
|
-
linkpost: false
|
|
42
|
-
|
|
43
|
-
|
data/test/_includes/post.html
DELETED
|
@@ -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 }}
|
data/test/articles.html
DELETED
data/test/linkposts.html
DELETED