hyde-page-css 0.4.4 → 0.5.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/lib/hyde-page-css.rb +6 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d481d06fb66fb641d90c10c5ecaab7c16db6b9adcfc49c762ea582350a43f47
|
4
|
+
data.tar.gz: aa01b38b8da692ad1b2f06ba35bd55074b842ec33fc00e2290cfbf08a03ca79f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd9f98cdb269afe98b850941faf9ae68e0571fdbc87cfcb3c600e51e56ad5e16ff24673271c1f4215983dda69051a1247693e9f3a7532525c46b82da224fcc18
|
7
|
+
data.tar.gz: 8480df5fa8f8a1109498ac4aa0c4e9ab632302f10c7e42d3d6fd0b140dbcdbcbe39795f06532fd6e1d2c6116a04cf5b9af297143a258ad8bd7cacdd9dc565a93
|
data/lib/hyde-page-css.rb
CHANGED
@@ -12,7 +12,7 @@ end
|
|
12
12
|
module Hyde
|
13
13
|
module Page
|
14
14
|
class Css
|
15
|
-
VERSION = "0.
|
15
|
+
VERSION = "0.5.1"
|
16
16
|
end
|
17
17
|
|
18
18
|
class GeneratedCssFile < Jekyll::StaticFile
|
@@ -72,7 +72,9 @@ module Hyde
|
|
72
72
|
return if css_groups.flatten.empty?
|
73
73
|
|
74
74
|
for group in css_groups
|
75
|
+
next if group.nil?
|
75
76
|
next if group.empty?
|
77
|
+
|
76
78
|
lookup_name = names_to_key(group)
|
77
79
|
cache_entry = @site.data["_hyde_pages_cache"].fetch(lookup_name, nil)
|
78
80
|
|
@@ -102,7 +104,7 @@ module Hyde
|
|
102
104
|
end
|
103
105
|
|
104
106
|
# assign to page.data.css_files for liquid output
|
105
|
-
add_to_urls(cache_entry&.fetch(:url, nil))
|
107
|
+
add_to_urls(cache_entry&.fetch(:url, nil), cache_entry&.fetch(:data, nil))
|
106
108
|
end
|
107
109
|
end
|
108
110
|
|
@@ -112,9 +114,9 @@ module Hyde
|
|
112
114
|
names.join("-")
|
113
115
|
end
|
114
116
|
|
115
|
-
def add_to_urls(url)
|
117
|
+
def add_to_urls(url, data)
|
116
118
|
@page.data["css_files"] ||= []
|
117
|
-
@page.data["css_files"].push(url)
|
119
|
+
@page.data["css_files"].push({ "path" => url, "content" => data })
|
118
120
|
end
|
119
121
|
|
120
122
|
def fetch_config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyde-page-css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Daynes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
|
-
rubygems_version: 3.5.
|
60
|
+
rubygems_version: 3.5.22
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Plugin for jekyll to enable per page css files
|