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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/http2.html +56 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae4601599e20b5af11d3e0c7ab035958c456b34b77a3e23ffd31d364e2a232b8
4
- data.tar.gz: de73aaa7b1a58840c92d0f39e2841f0cc99e90da4209a54e8a0bfc1018cd60c4
3
+ metadata.gz: d8611ab30c93f1d125348cf3f3c50cfc0db4a685ffffdf3a1daeb607fd6329f4
4
+ data.tar.gz: 1b87b5523bf7ddeecf6b84d668cbe57b3254dfe8428c9228d39997c0c4cd27be
5
5
  SHA512:
6
- metadata.gz: 22ad43c4fedb6dfc14c858ae64fa2e010e8bf2e63d2aa01aeb8ec241d00e3f662fa5f74214290ca2c2daff6adbee32ec02168a0c54cb48b963b6d8c423016a1b
7
- data.tar.gz: d653d2033cc037b117c639af46b5cb52a5e66d52534a406f9242766341ec2b8e44f86d46a1fca5027b15a48f660b90c867bff248299a3e8005a2a8169b2cded5
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 %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2.5
4
+ version: 3.1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby