jekyll-uj-powertools 1.6.12 → 1.6.13
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-uj-powertools.gemspec +1 -1
- data/lib/tags/video.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '02549cb967cbd7824079ec66c7b3efc58bfbd8900541807199e4999472e4f637'
|
4
|
+
data.tar.gz: 4b8f38b4f5a17787d3edd32b00f3a011682b2fd276dc561e9a1fb37349e2ddde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 572aee2b9a5c50dc70061d1d4b6b49773b0297a9e786c6e897fb767166600de697285570a245ee10e1b40f1a24dad018fff7adcf2ac3efa03380a07b8fd4fb0d
|
7
|
+
data.tar.gz: bdc0de0cb663b2f4de284ceefa13c094384b4d6cea72e90a7fd05fc48e3d1d3d56be2a29d6bf413aeb89295a448c7f4102397a742a99c0bed32fa4157fd71572
|
data/lib/tags/video.rb
CHANGED
@@ -50,7 +50,8 @@ module Jekyll
|
|
50
50
|
# parse_arguments and parse_options methods are now provided by VariableResolver module
|
51
51
|
|
52
52
|
def build_video_element(src, src_path, extension, max_width, options)
|
53
|
-
html = "<
|
53
|
+
html = "<div class=\"lazy-loading\" data-lazy-load-container>\n"
|
54
|
+
html += "<video\n"
|
54
55
|
|
55
56
|
# Add common video attributes
|
56
57
|
css_class = options['class'] || ''
|
@@ -83,7 +84,8 @@ module Jekyll
|
|
83
84
|
|
84
85
|
# Fallback text
|
85
86
|
html += "Your browser does not support the video tag.\n"
|
86
|
-
html += "</video
|
87
|
+
html += "</video>\n"
|
88
|
+
html += "</div>"
|
87
89
|
|
88
90
|
html
|
89
91
|
end
|
@@ -126,7 +128,8 @@ module Jekyll
|
|
126
128
|
poster = options['poster'] || ''
|
127
129
|
|
128
130
|
# Build video tag on a single line to prevent markdown parsing issues
|
129
|
-
html = "<
|
131
|
+
html = "<div class=\"lazy-loading\" data-lazy-load-container>"
|
132
|
+
html += "<video"
|
130
133
|
html += " class=\"#{css_class}\"" unless css_class.empty?
|
131
134
|
html += " style=\"#{style}\"" unless style.empty?
|
132
135
|
html += " width=\"#{width}\"" unless width.empty?
|
@@ -147,6 +150,7 @@ module Jekyll
|
|
147
150
|
html += "<source data-lazy=\"@src #{src}\" type=\"video/#{mime_type}\">"
|
148
151
|
html += "Your browser does not support the video tag."
|
149
152
|
html += "</video>"
|
153
|
+
html += "</div>"
|
150
154
|
|
151
155
|
html
|
152
156
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-uj-powertools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITW Creative Works
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|