jekyll-tfidf-related-posts 0.1.3 → 0.1.4
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/README.md +5 -2
- data/jekyll-tfidf-related-posts.gemspec +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74d009f7cd0bc7aabb8f152b8257ea9ba9749f65
|
|
4
|
+
data.tar.gz: 4a2e7342a4321ba8cf11447163726fd1ea87093a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f72856300083cfa14c2262fdaa4a92ace68c8e882ce0e12ab857e4e26b6f66b9d878ab47454f66ad68a04684ee66cf46a1603342b6e125ed485c64b481b5866
|
|
7
|
+
data.tar.gz: d737cc7430e2920b161ec60f28f36e5353de21faf35993dda38269fe3afdc900aa2a60b7486459fd41a70c02e4976e8d6e230798152be580d3de4121aba104c2
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# jekyll-tdidf-related-posts
|
|
2
2
|
|
|
3
|
-
[](https://rubygems.org/gems/jekyll-tfidf-related-posts)
|
|
4
|
+
[](LICENSE.txt)
|
|
4
5
|
|
|
5
6
|
[Jekyll](http://jekyllrb.com) plugin to show related posts based on the content, tags, and categories. The similarity is calculated using TF-IDF(term frequency-inverted document frequency). Since tags and categories are use-defined values, those are considered with higher weights than a content while calculating.
|
|
6
7
|
|
|
@@ -21,12 +22,14 @@ plugins:
|
|
|
21
22
|
### How to use
|
|
22
23
|
This plugin calculates related posts and replaces `site.related_posts` containing recent 10 posts by default. So, you can render related posts by iterating `site.related_posts`.
|
|
23
24
|
|
|
24
|
-
```
|
|
25
|
+
```java
|
|
25
26
|
{% for post in site.related_posts %}
|
|
26
27
|
{% include related-post.html %}
|
|
27
28
|
{% endfor %}
|
|
28
29
|
```
|
|
29
30
|
|
|
31
|
+
> GitHub Pages supports only [these plugins](https://pages.github.com/versions/). For GitHub Pages, you need to generate your site locally and then push static files to GitHub Pages site.
|
|
32
|
+
|
|
30
33
|
### Configuration
|
|
31
34
|
|
|
32
35
|
By default, there are 4 related posts. You can configure it in the `_config.yml`
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "jekyll-tfidf-related-posts"
|
|
7
|
-
spec.version = "0.1.
|
|
7
|
+
spec.version = "0.1.4"
|
|
8
8
|
spec.authors = ["Sangsoo Nam"]
|
|
9
9
|
spec.email = ["sangsoo.ted@gmail.com"]
|
|
10
10
|
spec.summary = %q{Jekyll plugin to show related posts based on the content, tags, and categories.}
|
|
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
|
16
|
+
spec.required_ruby_version = ">= 2.3.0"
|
|
16
17
|
spec.require_paths = ["lib"]
|
|
17
18
|
|
|
18
19
|
spec.add_dependency "jekyll", "~> 3.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-tfidf-related-posts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sangsoo Nam
|
|
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
requirements:
|
|
109
109
|
- - ">="
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
|
-
version:
|
|
111
|
+
version: 2.3.0
|
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - ">="
|