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 +4 -4
- data/jekyll-fa-icons.gemspec +1 -1
- data/lib/jekyll-fa-icons/version.rb +1 -1
- data/lib/jekyll-fa-icons.rb +12 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bce2471c74d7c8978d267aa1d4d913bb4e781ed6b97f8c6f59d52c183ee3934
|
4
|
+
data.tar.gz: febb13ebcffd6d1c7185b22dc2930c623ad10228c9aa2d2ab7cc4838ea6170f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dc7422091ae36041bf7a60a0a97636d8f889ea0cd6acf6a4c9f32b3af80312372101684bd9df024139b0a628b630882645015bf38880ca82afc777dd2da0715
|
7
|
+
data.tar.gz: 9f4d3e8db103efdf1289ecc071cdc125829cc4686f5a82aeb6c1cb0f4fb2a0dfe945316db82a44257663c62f2461c4d50aebf19985bd40ba994a3e6443d65900
|
data/jekyll-fa-icons.gemspec
CHANGED
@@ -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/
|
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)/}) }
|
data/lib/jekyll-fa-icons.rb
CHANGED
@@ -3,13 +3,18 @@
|
|
3
3
|
require 'jekyll'
|
4
4
|
require 'jekyll-fa-icons/version'
|
5
5
|
|
6
|
-
# TODO
|
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
|
-
'
|
12
|
-
'
|
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.
|
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:
|
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/
|
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.
|
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
|