jekyll-tags 0.0.1 → 0.0.2.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 +8 -8
- data/README.md +27 -8
- data/lib/jekyll/tags.rb +4 -1
- data/lib/jekyll/tags/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGM1MWFlOTViZWY3NDM2Mjg0NTE5YmQ2NGJkNjczNjQxNmNlYWEzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDQxNDY3OThiOGRhZjRjYzZhNWYxNGFmYmIyZDdkMjM0MjFjODMxOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzVhYjgzN2U3ZmIzZjczNjVjMzNiZWJlZTE0NDE0YzkxYmE3YTU2MmFiNDQ1
|
10
|
+
N2Q0NGE5MGYxZWJkNDdiYzk5ZGZjY2M0OGNkOWRiODg3YmI5Y2EyZTViMzBj
|
11
|
+
MmFjMTI3ZWI3MDA5OGY1YWNiMmRiZWI5NmZmMDllZDFlMmRiNTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGEwYzBmYzU1ZmZlYjk1OWFiYzQzOTJjMzkzNjFmOTNjZDM5Y2M3ZTAxMTEy
|
14
|
+
Mjg3NDUwMWRkOGJiNGE1MDVhYmZiZTcyNTBjMjllYjk5OWNlMDE5OWMxNzg2
|
15
|
+
NWI2NzQ0NzIxOGU1OTQ3NmU5ZWRkNDNiZDA0ZTE4MGM3NTYzYTI=
|
data/README.md
CHANGED
@@ -1,22 +1,36 @@
|
|
1
1
|
# Jekyll::Tags
|
2
2
|
|
3
|
+
Jekyll plugin for generate a tag cloud.
|
4
|
+
|
3
5
|
## Installation
|
4
6
|
|
5
|
-
|
7
|
+
Install it yourself as:
|
6
8
|
|
7
|
-
gem
|
9
|
+
$ gem install jekyll-tags
|
8
10
|
|
9
|
-
|
11
|
+
## Usage
|
10
12
|
|
11
|
-
|
13
|
+
Add follow line into `_plugins/ext.rb`
|
12
14
|
|
13
|
-
|
15
|
+
require 'jekyll/tags'
|
14
16
|
|
15
|
-
|
17
|
+
Now you must create a tag cloud. For example in `some_page.html`
|
16
18
|
|
17
|
-
|
19
|
+
````html
|
20
|
+
<div id="tag-cloud">
|
21
|
+
<h3>Tags</h3>
|
22
|
+
{% assign tags = site.tags | tag_cloud_build %}
|
23
|
+
{% for tag in tags %}
|
24
|
+
<span class="tag" style="font-size: {{tag.last}}em;">
|
25
|
+
{{ tag.first }}
|
26
|
+
</span>
|
27
|
+
{% endfor %}
|
28
|
+
</div>
|
29
|
+
````
|
18
30
|
|
19
|
-
|
31
|
+
When you use filter `site.tags | tag_cloud_build` you pass into filter
|
32
|
+
`site.tags` and take array like `[[tag1, 1], [tag2, 2], [tag3, 10]]`
|
33
|
+
First element is a you tag. Second is a frequency.
|
20
34
|
|
21
35
|
## Contributing
|
22
36
|
|
@@ -25,3 +39,8 @@ TODO: Write usage instructions here
|
|
25
39
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
26
40
|
4. Push to the branch (`git push origin my-new-feature`)
|
27
41
|
5. Create new Pull Request
|
42
|
+
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
The MIT License
|
data/lib/jekyll/tags.rb
CHANGED
data/lib/jekyll/tags/version.rb
CHANGED