jumbo-jekyll-theme 3.1.2.5 → 3.1.2.6
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/_includes/http2.html +56 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8611ab30c93f1d125348cf3f3c50cfc0db4a685ffffdf3a1daeb607fd6329f4
|
|
4
|
+
data.tar.gz: 1b87b5523bf7ddeecf6b84d668cbe57b3254dfe8428c9228d39997c0c4cd27be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3327d963e3779daa12aa0b9e3250e0741a4ffb8f3b5a2ca61b16d2d2fc327e5b35383af0cbd45b3a1a5b85474def706fbdce1608080b85c97a5cdb60c9796829
|
|
7
|
+
data.tar.gz: 6dbeee08ad1382865e9f2a351db8cd80446b2edd5dedfcf7f30b59661aeccc06857d7f8823a6cc0cdfca3701daff0d33d713b807c4bf31a14a9c71d2804bfb7e
|
data/_includes/http2.html
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
Preload CSS Packages
|
|
3
|
+
{% endcomment %}
|
|
1
4
|
{% if page.css-package %}
|
|
2
5
|
{% capture css-package %}/assets/css/main-{{page.css-package}}.css{% endcapture %}
|
|
3
6
|
<link rel="preload" as="style" href="{{ css-package | relative_url }}?v={% bust_cache %}">
|
|
@@ -9,6 +12,9 @@
|
|
|
9
12
|
{% else %}
|
|
10
13
|
<link rel="preload" as="style" href="{{ "/assets/css/main.css" | relative_url }}?v={% bust_cache %}">
|
|
11
14
|
{% endif %}
|
|
15
|
+
{% comment %}
|
|
16
|
+
Preload JS Packages
|
|
17
|
+
{% endcomment %}
|
|
12
18
|
{% if page.js-package %}
|
|
13
19
|
{% capture js-package %}package-{{page.js-package}}{% endcapture %}
|
|
14
20
|
<link rel="preload" as="script" href="{% asset_path {{js-package}} %}?v={% bust_cache %}">
|
|
@@ -18,3 +24,53 @@
|
|
|
18
24
|
{% else %}
|
|
19
25
|
<link rel="preload" as="script" href="{% asset_path package %}?v={% bust_cache %}">
|
|
20
26
|
{% endif %}
|
|
27
|
+
{% comment %}
|
|
28
|
+
The following liquid checks the pages frontmatter for http2_resources list.
|
|
29
|
+
Add all non-theme resources that you'd like to preload here.
|
|
30
|
+
{% endcomment %}
|
|
31
|
+
{% if page.http2_resources %}
|
|
32
|
+
{% for resource in page.http2_resources %}
|
|
33
|
+
<link rel="{{resource.rel}}" as="{{resource.as}}" href="{{resource.href}}">
|
|
34
|
+
{% endfor %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
{% comment %}
|
|
37
|
+
Jumbotron Background Image
|
|
38
|
+
{% endcomment %}
|
|
39
|
+
{% if page.jumbotron.background-image %}
|
|
40
|
+
{% for resource in page.http2_resources %}
|
|
41
|
+
<link rel="preload" as="image" href="{{page.jumbotron.background-image}}">
|
|
42
|
+
{% endfor %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% comment %}
|
|
45
|
+
Jumbotron Carousel Images
|
|
46
|
+
{% endcomment %}
|
|
47
|
+
{% if page.jumbotron.carousel-images %}
|
|
48
|
+
{% for image in page.jumbotron.carousel-images %}
|
|
49
|
+
<link rel="preload" as="image" href="{{image}}">
|
|
50
|
+
{% endfor %}
|
|
51
|
+
{% endif %}
|
|
52
|
+
{% comment %}
|
|
53
|
+
Jumbotron Carousel Images
|
|
54
|
+
{% endcomment %}
|
|
55
|
+
{% if page.jumbotron.carousel-images %}
|
|
56
|
+
{% for image in page.jumbotron.carousel-images %}
|
|
57
|
+
<link rel="preload" as="image" href="{{image}}">
|
|
58
|
+
{% endfor %}
|
|
59
|
+
{% endif %}
|
|
60
|
+
{% comment %}
|
|
61
|
+
Jumbotron Video
|
|
62
|
+
{% endcomment %}
|
|
63
|
+
{% if page.jumbotron.video.poster %}
|
|
64
|
+
<link rel="preload" as="image" href="{{page.jumbotron.video.poster}}">
|
|
65
|
+
{% endif %}
|
|
66
|
+
{% if page.jumbotron.video.source.mp4 %}
|
|
67
|
+
<link rel="preload" as="video" href="{{page.jumbotron.video.source.mp4}}">
|
|
68
|
+
{% endif %}
|
|
69
|
+
{% comment %}
|
|
70
|
+
Blog Images
|
|
71
|
+
{% endcomment %}
|
|
72
|
+
{% if page.image.featured %}
|
|
73
|
+
{% if page.image.path %}
|
|
74
|
+
<link rel="preload" as="image" href="{{page.image.path}}">
|
|
75
|
+
{% endif %}
|
|
76
|
+
{% endif %}
|