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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2371d036aed4d13b02b545cb576a619a98eb740cfd76f07cd00437e1ca9b4bd2
4
- data.tar.gz: c436b3ef8883931e75c2a93817780f66d6c7f3a4275890a7bc2f27561793b6a4
3
+ metadata.gz: 7f2f8acca77d940b511b6504685dc8d199ec3994cbc909aa5dfc87d722ea1ca3
4
+ data.tar.gz: bb79c09d09e5613f42d6b984023af5482181d698ae1c9c119478afc764a8496f
5
5
  SHA512:
6
- metadata.gz: 8be478e87163c9c9147f312810e3e0b0b648c9b12564fe915deed2b9b70cecd571215b30f105df641b1729b9523c105f447ed09a7d7ff070f0b77d15da646168
7
- data.tar.gz: 9e85e5c5e15a2fb0e2d2509c83134bc43799fb5f280fb3cd3d80c6182909f36afa5e2d85e2c7dc285b16e4734221db5d5ae847ddb9badf965595daa9a559964b
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
- ```ruby
39
+ ### Jekyll site configuration
40
+
41
+ **`_config.yml`**
42
+
43
+ ```yaml
31
44
  plugins:
32
- - jekyll-tabler
45
+ - jekyll-tabler
33
46
  ```
34
47
 
35
- ```liquid
36
- {% tabler alarm %}
37
- {% tabler alarm 32 %}
38
- {% tabler alarm 32 red %}
39
- {% tabler alarm size=32 %}
40
- {% tabler alarm color=red %}
41
- {% tabler alarm color=red size=32 %}
42
- {% assign icon_name = foo.icon %}
43
- {% tabler icon_name 32 red %}
44
- {% tabler github 32 red %}
45
- {% tabler page.icon_name size=page.icon_size color=page.icon_color %}
46
- {% tabler page.icon_name 32 page.icon_color %}
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
- Parameters:
78
+ - **Github filled icon**
50
79
 
51
- - `icon_name` is required.
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
- ## Development
82
+ ```liquid
83
+ {% tabler_filled brand-github %}
84
+ ```
59
85
 
60
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
86
+ With custom size and color
61
87
 
62
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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. 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).
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