jekyll-tabler 0.1.0 → 0.1.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 +4 -4
- data/README.md +54 -26
- data/assets/filled.yml +923 -47
- data/assets/outline.yml +5224 -3464
- data/lib/jekyll-tabler.rb +46 -4
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f2f8acca77d940b511b6504685dc8d199ec3994cbc909aa5dfc87d722ea1ca3
|
|
4
|
+
data.tar.gz: bb79c09d09e5613f42d6b984023af5482181d698ae1c9c119478afc764a8496f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47ea8e92733ea94a8c108e09e383a73550d344b0b53b0a0e4c95d1b005ddbb6e8b37f4077f66dc2a91656f13e5b986104bbc377ac2f14a40b798b46e2ddb069a
|
|
7
|
+
data.tar.gz: 72161204eb80ca0f73b844b80bc2d55e977c6ac0958a96b037fafeef0adaef1f135963a02508e937ab318e506804079669aae5e57e7b84dda90ee90214180e28
|
data/README.md
CHANGED
|
@@ -17,6 +17,15 @@ Install the gem and add to the application's Gemfile by executing:
|
|
|
17
17
|
bundle add jekyll-tabler
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
In your `Gemfile`:
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
group :jekyll_plugins do
|
|
24
|
+
# other jekyll plugins
|
|
25
|
+
gem 'jekyll-tabler' # add tabler plugin
|
|
26
|
+
end
|
|
27
|
+
```
|
|
28
|
+
|
|
20
29
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
21
30
|
|
|
22
31
|
```bash
|
|
@@ -27,43 +36,62 @@ gem install jekyll-tabler
|
|
|
27
36
|
|
|
28
37
|
Register the plugin in your Jekyll site and render icons with the `tabler` Liquid tag:
|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
### Jekyll site configuration
|
|
40
|
+
|
|
41
|
+
**`_config.yml`**
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
31
44
|
plugins:
|
|
32
|
-
|
|
45
|
+
- jekyll-tabler
|
|
33
46
|
```
|
|
34
47
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{% tabler
|
|
38
|
-
{%
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
### Liquid Tags
|
|
49
|
+
|
|
50
|
+
- **Outline Tag** : `{% tabler icon_name [size] [color] [size=value] [color=value] %}`
|
|
51
|
+
- **Filled Tag** : `{% tabler_filled icon_name [size] [color] [size=value] [color=value] %}`
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
Liquid variables are supported for all arguments, including top-level names like `icon_name` or `brand-github` and dotted lookups like `page.icon_name`.Optional parameters can be passed as named arguments like `size=32` and `color=red` in any order.
|
|
56
|
+
|
|
57
|
+
1. `icon_name`(Required) : Name of the [Tabler Icons](https://tabler.io/icons), must be first place after liquid tag name.
|
|
58
|
+
`icon_name` can find at search bar of <https://tabler.io/icons>.
|
|
59
|
+
2. `size`(Optional) : Width and Height of SVG default to `24`.
|
|
60
|
+
3. `color`(Optional) : Color of `fill` for filled SVG and `stroke` for outline SVG , default `currentColor`
|
|
61
|
+
|
|
62
|
+
### Example
|
|
63
|
+
|
|
64
|
+
- **Github outline icon**
|
|
65
|
+
|
|
66
|
+
With default size and color
|
|
67
|
+
|
|
68
|
+
```liquid
|
|
69
|
+
{% tabler brand-github %}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
With custom size and color
|
|
73
|
+
|
|
74
|
+
```liquid
|
|
75
|
+
{% tabler brand-github size=36 color=#673ab8 %}
|
|
76
|
+
```
|
|
48
77
|
|
|
49
|
-
|
|
78
|
+
- **Github filled icon**
|
|
50
79
|
|
|
51
|
-
|
|
52
|
-
- `size` is optional and defaults to `24`.
|
|
53
|
-
- `color` is optional and defaults to `currentColor`.
|
|
54
|
-
- Optional parameters can be passed as named arguments like `size=32` and `color=red` in any order.
|
|
55
|
-
- `color` is optional and defaults to `currentColor`.
|
|
56
|
-
- Liquid variables are supported for all arguments, including top-level names like `icon_name` or `github` and dotted lookups like `page.icon_name`.
|
|
80
|
+
With default size and color
|
|
57
81
|
|
|
58
|
-
|
|
82
|
+
```liquid
|
|
83
|
+
{% tabler_filled brand-github %}
|
|
84
|
+
```
|
|
59
85
|
|
|
60
|
-
|
|
86
|
+
With custom size and color
|
|
61
87
|
|
|
62
|
-
|
|
88
|
+
```liquid
|
|
89
|
+
{% tabler_filled brand-github size=36 color=#673ab8 %}
|
|
90
|
+
```
|
|
63
91
|
|
|
64
92
|
## Contributing
|
|
65
93
|
|
|
66
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-tabler
|
|
94
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/[USERNAME]/jekyll-tabler>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/jekyll-tabler/blob/master/CODE_OF_CONDUCT.md).
|
|
67
95
|
|
|
68
96
|
## License
|
|
69
97
|
|