jekyll-tagging-related_posts 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -1
- data/Gemfile +4 -0
- data/README.md +11 -5
- data/jekyll-tagging-related_posts.gemspec +1 -0
- data/lib/jekyll-tagging-related_posts.rb +3 -2
- data/lib/jekyll/tagging/related_posts.rb +0 -2
- data/lib/jekyll/tagging/related_posts/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1723eeed593e54f6202eca9d50d84034ea2489f1
|
4
|
+
data.tar.gz: c5438cd783c65626cc7c4b80efd23ba3ffd620f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 088cb2097cec4dd59f2d4e6d7c75cab5c648106a0f96e009c2f7565443895d1b510b32df9a2c25e8f3bfcb35622e476afc0948c93a71b4442fbeec2d413fd187
|
7
|
+
data.tar.gz: cde637ffa4c950d92a5f327cefba9e0c572128855d8a6a45220e15d18162a57b641689c3402313431d4898b00aed6295ddabce41b6af3dafc329c0c8025cde87
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
-
|
2
1
|
# jekyll-tagging-related_posts
|
3
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts.svg?branch=master)](https://travis-ci.org/toshimaru/jekyll-tagging-related_posts)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/jekyll-tagging-related_posts.svg)](https://badge.fury.io/rb/jekyll-tagging-related_posts)
|
5
|
+
[![Test Coverage](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/coverage.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/coverage)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/jekyll-tagging-related_posts)
|
7
|
+
[![Dependency Status](https://gemnasium.com/toshimaru/jekyll-tagging-related_posts.svg)](https://gemnasium.com/toshimaru/jekyll-tagging-related_posts)
|
8
|
+
|
4
9
|
Jekyll `related_posts` function based on tags (works for only Jekyll3). It replaces original Jekyll's `related_posts` function to use tags to calculate relationships.
|
5
10
|
|
6
|
-
|
11
|
+
The calculation algorithm is based on [LawrenceWoodman/related\_posts-jekyll\_plugin](https://github.com/LawrenceWoodman/related_posts-jekyll_plugin).
|
7
12
|
|
8
13
|
## Requirements
|
14
|
+
* Ruby 2.x
|
9
15
|
* [Jekyll 3.x](https://github.com/jekyll/jekyll)
|
10
16
|
* [pattex/jekyll-tagging](https://github.com/pattex/jekyll-tagging)
|
11
17
|
|
@@ -35,9 +41,9 @@ gems:
|
|
35
41
|
- jekyll-tagging-related_posts
|
36
42
|
```
|
37
43
|
|
38
|
-
Then, add related_posts in your post layout.
|
44
|
+
Then, add `site.related_posts` in your post layout.
|
39
45
|
|
40
|
-
```
|
46
|
+
```liquied
|
41
47
|
{% if site.related_posts.size >= 1 %}
|
42
48
|
<div>
|
43
49
|
<h3>Related Posts</h3>
|
@@ -56,7 +62,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
56
62
|
|
57
63
|
## Contributing
|
58
64
|
|
59
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-tagging-related_posts. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
65
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-tagging-related_posts/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
60
66
|
|
61
67
|
## License
|
62
68
|
|
@@ -1,8 +1,9 @@
|
|
1
|
-
require "jekyll/document"
|
2
|
-
|
3
1
|
require "jekyll/tagging/related_posts/version"
|
4
2
|
require "jekyll/tagging/related_posts"
|
5
3
|
|
4
|
+
# require `Jekyll::Document` first to overide
|
5
|
+
require "jekyll/document"
|
6
|
+
|
6
7
|
module Jekyll
|
7
8
|
class Document
|
8
9
|
include ::Jekyll::Tagging::RelatedPosts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tagging-related_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-reporters
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Replaces Jekyll's related_posts function to use tags to calculate relationships
|
98
112
|
email:
|
99
113
|
- me@toshimaru.net
|