jekyll-tagging 1.0.1 → 1.1.0
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 +8 -0
- data/README.rdoc +23 -2
- data/Rakefile +1 -1
- data/lib/jekyll/tagging.rb +5 -2
- data/lib/jekyll/tagging/version.rb +2 -2
- metadata +17 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a74eb332a83688543ca61d3fdd5d823c70ae26
|
4
|
+
data.tar.gz: 4a7783f373ffc76ddd1c338d4eb17a7162a50807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c85efafdd79fcf65c90aa7c61c509933765bee12d31366d89d6ae99353a3a317db5482f9087e472c4e039dcdd9b217c96176a2c686f0498f18507b278e38aae
|
7
|
+
data.tar.gz: 8c14f842ace3bad4db3c77db1433639d7ccfe6b358c57d34fbedb357dfee67d03b464033334fc2a1364dfde79122226f49b4f714d414bbef0e6aa84684360e0a
|
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 1.1.0 [2017-03-07]
|
2
|
+
|
3
|
+
* Added ability to append extra data to all tag pages. (tfe)
|
4
|
+
* Provides compatibility to the current jekyll (3.4.1).
|
5
|
+
* A few fixes. (felipe)
|
6
|
+
* Some documentation improvements. (wsmoak, jonathanpberger)
|
7
|
+
* Prooves who is the worst open source maintainer. (pattex ^__^)
|
8
|
+
|
1
9
|
== 1.0.1 [2015-06-11]
|
2
10
|
|
3
11
|
* Substitution of non ASCII characters and whitespaces, also when 'tag_permalink_style: pretty'.
|
data/README.rdoc
CHANGED
@@ -4,12 +4,23 @@ By Arne Eilermann <mailto:arne@kleinerdrei.net> and Jens Wille <mailto:jens.will
|
|
4
4
|
|
5
5
|
jekyll-tagging is a Jekyll plugin, to add a tag cloud and per tag pages plus feeds to your Jekyll generated Website.
|
6
6
|
|
7
|
+
== Tags
|
8
|
+
This plugin does not reinvent Jekyll's tagging feature. It just makes it easy to use.
|
9
|
+
<https://jekyllrb.com/docs/frontmatter/>
|
10
|
+
|
11
|
+
Add space-delimited lowercase tags to FrontMatter, e.g.
|
12
|
+
|
13
|
+
---
|
14
|
+
author: Willow Rosenberg
|
15
|
+
tags: feminism anti-capitalism witchcraft
|
16
|
+
---
|
17
|
+
|
7
18
|
== Usage
|
8
19
|
|
9
20
|
Install it:
|
10
21
|
|
11
22
|
gem install jekyll-tagging
|
12
|
-
|
23
|
+
|
13
24
|
Add this line to your Jekyll project's Gemfile:
|
14
25
|
|
15
26
|
gem 'jekyll-tagging'
|
@@ -25,7 +36,7 @@ And in your <tt>_config.yml</tt> you have to define your layout used to generate
|
|
25
36
|
|
26
37
|
This will look for <tt>_layouts/tag_page.html</tt>, and use it to generate tag pages into the <tt>_site/tag</tt> directory.
|
27
38
|
|
28
|
-
Now you have a new filter called <tt>tag_cloud</tt> which you can use with the <tt>site</tt> object as argument in your layout to get a cloud of all your site's tags. The tags are linked to their related tag page. Furthermore, you have a <tt>tags</tt> filter which you can feed with a <tt>post</tt> or a <tt>
|
39
|
+
Now you have a new filter called <tt>tag_cloud</tt> which you can use with the <tt>site</tt> object as argument in your layout to get a cloud of all your site's tags. The tags are linked to their related tag page. Furthermore, you have a <tt>tags</tt> filter which you can feed with a <tt>post</tt> or a <tt>page</tt> object to get a link list of all its tags.
|
29
40
|
|
30
41
|
You can optionally define a per tag Atom/RSS feed. In your <tt>_config.yml</tt> define the following:
|
31
42
|
|
@@ -43,6 +54,14 @@ If your Jekyll <tt>permalink</tt> configuration is set to something other than <
|
|
43
54
|
=== Ignoring tags
|
44
55
|
|
45
56
|
Sometimes you don't want tag pages generated for certain pages. That's ok! Just add <tt>ignored_tags: [tags,to,ignore]</tt> to your <tt>_config.yml</tt>
|
57
|
+
|
58
|
+
=== Extra data on tag pages
|
59
|
+
|
60
|
+
You can attach extra data to generated tag pages by specifying <tt>tag_page_data</tt> in <tt>_config.yml</tt> (this also works for <tt>tag_feed_data</tt>). For example, you might want to exclude tag pages from being picked up by `jekyll-sitemap`:
|
61
|
+
|
62
|
+
tag_page_data:
|
63
|
+
sitemap: false
|
64
|
+
|
46
65
|
=== Example tag page layout
|
47
66
|
|
48
67
|
(Save this to <tt>_layouts/tag_page.html</tt> if using the <tt>_config.yml</tt> snippet above.)
|
@@ -64,6 +83,8 @@ Sometimes you don't want tag pages generated for certain pages. That's ok! Just
|
|
64
83
|
|
65
84
|
=== Example layout of an Atom feed
|
66
85
|
|
86
|
+
(Save this to <tt>_layouts/tag_feed.xml</tt> if using the <tt>_config.yml</tt> snippet above.)
|
87
|
+
|
67
88
|
---
|
68
89
|
layout: nil
|
69
90
|
---
|
data/Rakefile
CHANGED
data/lib/jekyll/tagging.rb
CHANGED
@@ -12,7 +12,7 @@ module Jekyll
|
|
12
12
|
# Substitutes any diacritics in _str_ with their ASCII equivalents,
|
13
13
|
# whitespaces with dashes and converts _str_ to downcase.
|
14
14
|
def jekyll_tagging_slug(str)
|
15
|
-
str.replace_diacritics.downcase.gsub(/\s/, '-')
|
15
|
+
str.to_s.replace_diacritics.downcase.gsub(/\s/, '-')
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -49,6 +49,7 @@ module Jekyll
|
|
49
49
|
self.class.types.each { |type|
|
50
50
|
if layout = site.config["tag_#{type}_layout"]
|
51
51
|
data = { 'layout' => layout, 'posts' => posts.sort.reverse!, 'tag' => tag }
|
52
|
+
data.merge!(site.config["tag_#{type}_data"] || {})
|
52
53
|
|
53
54
|
name = yield data if block_given?
|
54
55
|
name ||= tag
|
@@ -114,7 +115,7 @@ module Jekyll
|
|
114
115
|
|
115
116
|
end
|
116
117
|
|
117
|
-
module
|
118
|
+
module TaggingFilters
|
118
119
|
|
119
120
|
include Helpers
|
120
121
|
|
@@ -154,3 +155,5 @@ module Jekyll
|
|
154
155
|
end
|
155
156
|
|
156
157
|
end
|
158
|
+
|
159
|
+
Liquid::Template.register_filter(Jekyll::TaggingFilters)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tagging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Eilermann
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: nuggets
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
@@ -29,22 +29,22 @@ dependencies:
|
|
29
29
|
name: hen
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.8.7
|
32
35
|
- - "~>"
|
33
36
|
- !ruby/object:Gem::Version
|
34
37
|
version: '0.8'
|
35
|
-
- - ">="
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.8.1
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.8.7
|
42
45
|
- - "~>"
|
43
46
|
- !ruby/object:Gem::Version
|
44
47
|
version: '0.8'
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.8.1
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,13 +79,17 @@ licenses:
|
|
79
79
|
metadata: {}
|
80
80
|
post_install_message: |2+
|
81
81
|
|
82
|
-
jekyll-tagging-1.0
|
82
|
+
jekyll-tagging-1.1.0 [2017-03-07]:
|
83
83
|
|
84
|
-
*
|
84
|
+
* Added ability to append extra data to all tag pages. (tfe)
|
85
|
+
* Provides compatibility to the current jekyll (3.4.1).
|
86
|
+
* A few fixes. (felipe)
|
87
|
+
* Some documentation improvements. (wsmoak, jonathanpberger)
|
88
|
+
* Prooves who is the worst open source maintainer. (pattex ^__^)
|
85
89
|
|
86
90
|
rdoc_options:
|
87
91
|
- "--title"
|
88
|
-
- jekyll-tagging Application documentation (v1.0
|
92
|
+
- jekyll-tagging Application documentation (v1.1.0)
|
89
93
|
- "--charset"
|
90
94
|
- UTF-8
|
91
95
|
- "--line-numbers"
|
@@ -106,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
110
|
version: '0'
|
107
111
|
requirements: []
|
108
112
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.6.10
|
110
114
|
signing_key:
|
111
115
|
specification_version: 4
|
112
116
|
summary: Jekyll plugin to automatically generate a tag cloud and tag pages.
|