jekyll-heroicons 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3685591a1423c6c548b5e6a3381c8559a141c87c11e0e5c8db082bb5ba9df456
4
- data.tar.gz: 4f4e3948c4d4b07d5bdd3f9c1974b7d50ec9c79e59749b5953df26f7069829e8
3
+ metadata.gz: 6f9892ee0260b9ee330b410ed33a452cb7ca59619e2eb4545f3c769bcaa28a84
4
+ data.tar.gz: 10675f3ab7d06b9a2f877a56b7fca7fe605b992f7b88cf072014cafe60611a4a
5
5
  SHA512:
6
- metadata.gz: aa85bec0a59401be1a498665dc13cbcd77935dcdedaa7e0cecefed90d3d679247e408e7694feb08a12b1c8839d82e2df72a55f7763fab379809d63e7901a5292
7
- data.tar.gz: 7b616f08a1d3e57adb75dafcfb17b8aec4420cae5ac8be676e0c48e8b88ffdb00d296b5946d4332f1d58ad949fb477cbe45173f8090841bc146ae7828492438c
6
+ metadata.gz: 00f81defdf20e8393da9bf39347cd4a9cc083a4b4246201d8e910d0ba85d7565c6a11ba45b7346de9dc1a30f89f6481257661467385ac6b34d36e1e98a11761d
7
+ data.tar.gz: f280231e9dd755e81c3929f0e2338505dcb0e1c7d0c6ba0b1ed6f606a71eb84b0591ceb4647d8119ab9b437b8402928ca17f06a5ba6456261b6cc9229cbf9e72
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Jekyll-Heroicons
2
2
 
3
+ ## 0.3.1
4
+ - Fix Site.configuration retrieval.
3
5
  ## 0.3.0
4
6
  - We can define in _config.yml default variant and default classes for each variant.
5
7
  ## 0.2.1
@@ -5,6 +5,6 @@ module Liquid; class Tag; end; end
5
5
 
6
6
  module Jekyll
7
7
  class Heroicons < Liquid::Tag
8
- VERSION = "0.3.0"
8
+ VERSION = "0.3.1"
9
9
  end
10
10
  end
@@ -44,9 +44,11 @@ module Jekyll
44
44
  private
45
45
 
46
46
  def config
47
- return {} unless defined?(context) && context.registers[:site]
48
-
49
- context.registers[:site].config["heroicons"]
47
+ @config ||= begin
48
+ Jekyll.configuration.dig("heroicons")
49
+ rescue NoMethodError
50
+ {}
51
+ end
50
52
  end
51
53
 
52
54
  def prepare(markup)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-heroicons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav (Stas) Katkov