jekyll-fa-icons 0.0.2 → 0.0.3

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: 5160c32f64ed30e587d58c22ceefbe57e5ddb7ab1be4385a74e7e76dd1deee21
4
- data.tar.gz: 389c2b171936d46f682f9ab86ffa7f505a516945ff48bd8456868b48877900ab
3
+ metadata.gz: 3bce2471c74d7c8978d267aa1d4d913bb4e781ed6b97f8c6f59d52c183ee3934
4
+ data.tar.gz: febb13ebcffd6d1c7185b22dc2930c623ad10228c9aa2d2ab7cc4838ea6170f4
5
5
  SHA512:
6
- metadata.gz: d4d7a055f9d54889f07e953c9e2984c6b6f602485eba834d043724e5c4832c502f34ac606c2ffb5e9ac0851c7ad618646def13fcb35d3bd7493e6f755b62d0d9
7
- data.tar.gz: 19132cabb89ed24a27e2e7912cbe95628dd2041e4e3d3bd5af84c84f24d6419b79e30f397b7bbd24c007483898fa4a00982b2324c5b07a01aaa9159d7b58ba46
6
+ metadata.gz: 8dc7422091ae36041bf7a60a0a97636d8f889ea0cd6acf6a4c9f32b3af80312372101684bd9df024139b0a628b630882645015bf38880ca82afc777dd2da0715
7
+ data.tar.gz: 9f4d3e8db103efdf1289ecc071cdc125829cc4686f5a82aeb6c1cb0f4fb2a0dfe945316db82a44257663c62f2461c4d50aebf19985bd40ba994a3e6443d65900
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{jekyll plugin to easily display FontAwesome icons}
13
13
  spec.description = %q{jekyll plugin to generate html snippets for embedding fa-icons}
14
- spec.homepage = "https://github.com/coulof/jekyll-fa-icons"
14
+ spec.homepage = "https://github.com/bauagonzo/jekyll-fa-icons"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module FontAwesomeIcons
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -3,13 +3,18 @@
3
3
  require 'jekyll'
4
4
  require 'jekyll-fa-icons/version'
5
5
 
6
- # TODO deal with other tags like color, etc.
6
+ # TODO :
7
+ # * deal with other tags like color, etc.
8
+ # * make DEFAULT_ICONS configurable from _config.yaml / Jekyll.configuration({})
9
+
7
10
  class FontAwesomeIcons < Liquid::Tag
8
- DEFAULT_ICONS = { 'gh' => 'fab fa-github',
9
- 'k8s' => 'fas fa-dharmachakra',
10
- 'rb' => 'fas fa-gem',
11
- 'wiki' => 'fab fa-wikipedia-w',
12
- 'linux' => 'fab fa-linux',
11
+ DEFAULT_ICONS = { 'gh' => 'fab fa-brands fa-github',
12
+ 'k8s' => 'fas fa-solid fa-dharmachakra',
13
+ 'rb' => 'fas fa-solid fa-gem',
14
+ 'sc' => 'fa-duotone fa-maximize',
15
+ 'wiki' => 'fab fa-brands fa-wikipedia-w',
16
+ 'linux' => 'fab fa-brands fa-linux',
17
+ 'rhel' => 'fa-brands fa-redhat',
13
18
  'dell' => 'fas fa-laptop-code' }
14
19
  def initialize(tagName, input, tokens)
15
20
  super
@@ -23,6 +28,7 @@ class FontAwesomeIcons < Liquid::Tag
23
28
  icon = DEFAULT_ICONS['gh']
24
29
  else
25
30
  # Font Awesome codes are always 2 words (e.g <i class="fab fa-500px"></i>)
31
+ # Less means that's one of the shortcut
26
32
  if @input.split.length < 2
27
33
  icon = DEFAULT_ICONS["#{@input.strip}"] #be sure to remove trailing spaces
28
34
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-fa-icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bauagonzo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -67,7 +67,7 @@ files:
67
67
  - jekyll-fa-icons.gemspec
68
68
  - lib/jekyll-fa-icons.rb
69
69
  - lib/jekyll-fa-icons/version.rb
70
- homepage: https://github.com/coulof/jekyll-fa-icons
70
+ homepage: https://github.com/bauagonzo/jekyll-fa-icons
71
71
  licenses:
72
72
  - MIT
73
73
  metadata: {}
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.1.2
89
+ rubygems_version: 3.1.4
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: jekyll plugin to easily display FontAwesome icons