jekyll-kw-shorten 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/jekyll/KargWare/Shorten/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0b8e21ea523c1e4ff5487f6e50750e609ab59ff0f7d0a6932c01ffe45246362
|
4
|
+
data.tar.gz: 88c23330b3c708e2633ce84df8785f910e9fe85fd1dafae7db5e5a8033c839b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcbd4a45c256e3d496bba8e7db42f00570f6d99bf510961406d9edcac1278a593d5486bf6882401e70f55336fd66f142dc41192703eb5be65a67c8148b7a3543
|
7
|
+
data.tar.gz: 655a299563860560d9893c454f82064a273856721c41a195fd303adf4fbcd23a5d5e1624d2d4645dfaa9ffe1916bb07327f2c7c1368aa524f121544095cf7394
|
data/README.md
CHANGED
@@ -55,8 +55,10 @@ The plug-in supports
|
|
55
55
|
| {{ 1000000000 \| shorten }} | ✔️ | 1.0 B |
|
56
56
|
| {{ 1000000000000 \| shorten }} | ✔️ | ∞ 🚀 |
|
57
57
|
|
58
|
-
**
|
59
|
-
|
58
|
+
**HINTS**:
|
59
|
+
|
60
|
+
* The filter `{{ MyText | shorten }}` will show nothing (empty string). The filter "thinks" the MyText is a variable (with the value nil). Numbers can be used with and without quotes. Text must be wrapped in quotes.
|
61
|
+
* The filter `{{ - 44 | shorten }}` will show nothing (empty string). The filter tries to parse the `-` as first part, not the number behind.
|
60
62
|
|
61
63
|
## Installation
|
62
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-kw-shorten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Karg
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
description: |2
|
29
29
|
A jekyll plugin which can shorten long numbers, e.g. 1000 == 1K or 1000000 == 1M.
|
30
30
|
|
31
|
-
It can be used as
|
31
|
+
It can be used as filter `{{ 1234 | shorten }}` and as tag `{% shorten 1234 %}`, the result will be **1.2 K**
|
32
32
|
email:
|
33
33
|
- rubygems.org@n13.org
|
34
34
|
executables: []
|