jekyll-content-security-policy-generator 1.6.13 → 1.6.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8e742af3bc7646fac70a8be0796f329ccd148785334dd7d24c9e4276fdd55f9
|
4
|
+
data.tar.gz: 3602a3a14acd1d7466561c7628944741aa81446fb05d8966039a2f1bd4d7465c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74199739d0fbc97015b36643a42afaefc23dc995259dad2a64058b8aef2855f3357d8d7a3e32d830701dbe0b65a866bd78fea21a2f123ebb76e777b56fcc2e7a
|
7
|
+
data.tar.gz: c0ca5274a8338fcaeac7f8b6f56ed678b5e49b7147db0e2425c3d3da9b53bcd2be412ae692452d7640562b1e0ee51fd9dea4f77f26e19bf0384b6205594274eb
|
@@ -257,15 +257,20 @@ module Jekyll
|
|
257
257
|
end
|
258
258
|
end
|
259
259
|
|
260
|
+
|
261
|
+
|
260
262
|
##
|
261
263
|
# Write document contents
|
262
264
|
def write(dest)
|
263
265
|
dest_path = destination(dest)
|
266
|
+
|
264
267
|
if File.extname(dest_path) == ".html"
|
265
268
|
content_security_policy_generator = ContentSecurityPolicyGenerator.new output
|
266
269
|
output = content_security_policy_generator.run
|
267
|
-
|
270
|
+
else
|
271
|
+
output = File.read(dest_path)
|
268
272
|
end
|
273
|
+
write_file_contents(dest_path, output)
|
269
274
|
end
|
270
275
|
|
271
276
|
end
|
@@ -288,6 +293,7 @@ module Jekyll
|
|
288
293
|
# Write page contents
|
289
294
|
def write(dest)
|
290
295
|
super dest
|
296
|
+
|
291
297
|
Jekyll::Hooks.trigger hook_owner, :post_write, self
|
292
298
|
end
|
293
299
|
end
|