jumbo-jekyll-theme 4.8 → 4.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23167a57bce65c4933fd14e2d4a4b137ac94b0daad1adb80a3df4c8a09629dbc
4
- data.tar.gz: ce55accff320705b076fc39bac3c4de5f91bd5bfd26ee4e65359c605af3fa3c8
3
+ metadata.gz: dbeee7269a11344a285aaf2620bafbfc5b5f8de5dd783b8a4e5a669548ca6eaf
4
+ data.tar.gz: b94b1d0357403aa4ce29d3fbb530dd867549d501f38d4b636c6ebee082868e53
5
5
  SHA512:
6
- metadata.gz: 47d1102e4fa33c804c54599bf97cb5bba64502c0358b02182e40a5392c039be1d3f02fc48fa86c61dbe8741b01eed30c24ffbf0ea8951903c40c4dcbe1d58933
7
- data.tar.gz: 9681f2fb2b2b388f4655cca1de7b33fb6f38471ea6dc685e34a9384712b1b59239921dffa6301b993ddda339d4e4c6d85897c7fcac307e7932bcb620286cf2a0
6
+ metadata.gz: 010df2d39a504d94cc41328d8c947d3d6538f660bff27265c2d8524b544b78520983139b6a090801bdbafd638a1be4b50413ed9adc2e6e0136d9a9f4a4be8f50
7
+ data.tar.gz: d5763e126deacac03c3facfa0013f7da5a54ad3bcddbbd1caf6e7931986a369aa31b5d90aa118747a4861b884d297c68f0be739f3437f97b0ebb8ef5c64cccc2
data/_config.yml CHANGED
@@ -48,26 +48,15 @@ jekyll_tidy:
48
48
  compress_html: true
49
49
  # JS Path added to exclude to stop errors.
50
50
  exclude: ["assets/**/*.js"]
51
- # Permalink style to be used for paginating pages in pagination.html
52
- paginate_path: /blog/:num/
53
- paginate_path_news: /news/:num/
54
- paginate_path_authors: /authors/:num/
55
51
  # Jekyll Pagination V2 Configuration
56
52
  pagination:
57
- # Default pagination path for Jekyll Posts
58
- # For other permalinks set in the front matter of the post index page
59
- permalink: /:num/
60
- # Enabled or not?
53
+ permalink: '/:num/'
61
54
  enabled: true
62
- # Home many posts to display by default
63
- per_page: 5
64
- # Number of pages to show either side of the current page i.e - 1, 2, {3}, 4, 5
55
+ per_page: 9
65
56
  trail:
66
57
  before: 2
67
58
  after: 2
68
- # Reverse the order of paginated pages
69
59
  sort_reverse: true
70
- # Field to sort posts by when paginating
71
60
  sort_field: 'date'
72
61
  # Jekyll pagination v2 autopages configuration.
73
62
  autopages:
@@ -117,5 +106,6 @@ readme_index:
117
106
  enabled: true
118
107
  remove_originals: false
119
108
  picture:
109
+ nomarkdown: false
120
110
  source: "assets/images"
121
111
  output: "assets/images/processed"
data/_data/picture.yml CHANGED
@@ -22,7 +22,7 @@ markup_presets:
22
22
  markup: auto
23
23
 
24
24
  # Must be an array, in order of decreasing preference. Defaults to just 'original'.
25
- formats: [webp, original]
25
+ formats: [original]
26
26
 
27
27
  # Must be an array: which image sizes (width in pixels) to generate (unless directed otherwise
28
28
  # below). If not specified, will use sensible default values.
@@ -71,24 +71,40 @@ markup_presets:
71
71
  # lazyload:
72
72
  # https://github.com/verlok/lazyload
73
73
  lazy:
74
- markup: data_auto
75
- formats: [webp, original]
74
+ markup: data_picture
75
+ formats: [original]
76
76
  widths: [400, 750, 1000]
77
77
  noscript: true # Default: false
78
78
  attributes:
79
79
  img: class="lazyload"
80
80
 
81
81
  thumb:
82
- markup: data_auto
83
- formats: [webp, original]
82
+ markup: data_picture
83
+ formats: [original]
84
84
  widths: [400, 750, 1000]
85
85
  noscript: true # Default: false
86
86
  attributes:
87
87
  img: class="lazyload"
88
88
 
89
+ blogThumb:
90
+ markup: data_picture
91
+ formats: [original]
92
+ widths: [50, 100, 200]
93
+ noscript: true # Default: false
94
+ attributes:
95
+ img: class="lazyload img-responsive"
96
+
89
97
  placeholder:
90
- markup: data_auto
91
- formats: [webp, original]
98
+ markup: data_picture
99
+ formats: [original]
100
+ noscript: true # Default: false
101
+ attributes:
102
+ img: class="lazyload"
103
+
104
+ backgroundImage:
105
+ markup: data_picture
106
+ widths: [400, 800, 1100, 1400]
107
+ formats: [original]
92
108
  noscript: true # Default: false
93
109
  attributes:
94
110
  img: class="lazyload"
@@ -96,5 +112,5 @@ markup_presets:
96
112
  # This is an example of how you'd get generated image and a URL, and nothing else.
97
113
  direct:
98
114
  markup: direct_url
99
- fallback_format: webp # Default original
115
+ fallback_format: Default original
100
116
  fallback_width: 600 # Default 800
@@ -0,0 +1,8 @@
1
+ <div class="row" id="call_to_action_banner">
2
+ {% if include.object.image %}
3
+ {% picture backgroundImage {{include.object.image.path}} alt=include.object.image.alt %}
4
+ {% endif %}
5
+ <div class="container">
6
+ {% if include.object.title %}<h1>{{include.object.title}}</h1>{% endif %}
7
+ </div>
8
+ </div>
@@ -0,0 +1,19 @@
1
+ <div class="container-fluid content" id="main_container">
2
+ {% for section in include.flow %}
3
+ {% if section.type == "main-content" %}
4
+ <div class="row" id="main_content">
5
+ <div class="container">
6
+ {{content}}
7
+ </div>
8
+ </div>
9
+ {% elsif section.type == "slider" %}
10
+ {% include slider.html object=section %}
11
+ {% elsif section.type == "latest-posts" %}
12
+ {% include latest_posts.html limit=section.number_of_posts %}
13
+ {% elsif section.type == "feature-block" %}
14
+ {% include feature-block.html object=section %}
15
+ {% elsif section.type == "cards" %}
16
+ {% include cards.html object=section %}
17
+ {% endif %}
18
+ {% endfor %}
19
+ </div>
@@ -1,4 +1,4 @@
1
- {% assign paginate_path = include.path %}
1
+ {% assign paginate_path = include.pagination_permalink %}
2
2
  {% assign paginate_base_path = paginate_path | split: ":" %}
3
3
  {% if paginator.total_pages > 1 %}
4
4
  <div class="row pagination-row">
@@ -9,25 +9,15 @@
9
9
  {% else %}
10
10
  <li class="disabled"><a href="#">&laquo; Prev</a></li>
11
11
  {% endif %}
12
- {% if paginator.page_trail %}
13
- {% for trail in paginator.page_trail %}
14
- <li {% if page.url == trail.path %}class="active"{% endif %}>
15
- <a href="{% if trail.num == 1 %}{{paginate_base_path[0]}}{% else %}
16
- {{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
17
- title="{{trail.title}}">{{ trail.num }}</a>
18
- </li>
19
- {% endfor %}
20
- {% else %}
21
- {% for page in (1..paginator.total_pages) %}
22
- {% if page == paginator.page %}
23
- <li class="active"><a href="">{{ page }}</a></li>
24
- {% elsif page == 1 %}
25
- <li><a href="{{paginate_base_path[0]}}">{{ page }}</a></li>
26
- {% else %}
27
- <li><a href="{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
28
- {% endif %}
29
- {% endfor %}
30
- {% endif %}
12
+ {% if paginator.page_trail %}
13
+ {% for trail in paginator.page_trail %}
14
+ <li data-pagination-permalink="{{paginate_path}}" {% if page.url == trail.path %}class="active"{% endif %}>
15
+ <a href="{% if trail.num == 1 %}{{paginate_base_path[0]}}{% else %}
16
+ {{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
17
+ title="{{trail.title}}">{{ trail.num }}</a>
18
+ </li>
19
+ {% endfor %}
20
+ {% endif %}
31
21
  {% if paginator.next_page %}
32
22
  <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next </a></li>
33
23
  {% else %}
@@ -16,24 +16,17 @@
16
16
  <div class="row featured_blog_post">
17
17
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
18
18
  {% if post.image.thumb %}
19
- {% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
20
- {% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
21
- {% elsif post.image.name %}
22
- {% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
23
- {% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
19
+ {% capture full_path %}blog/thumbs/{{post.image.thumb}}{% endcapture %}
24
20
  {% elsif post.image.path %}
25
- {% capture image_path %}{{post.image.path | remove_first: '/'}}{% endcapture %}
26
- {% capture full_path %}{{post.image.path }}{% endcapture %}
21
+ {% capture full_path %}{{post.image.path | replace: '/assets/images/', '' }}{% endcapture %}
27
22
  {% elsif post.image == site.data.settings.social_share_image %}
28
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
29
- alt="{{post.title}}" class="center-block img-responsive lazyload" />
23
+ {% capture full_path %}{{site.data.settings.social_share_image | replace: '/assets/images/', '' }}{% endcapture %}
30
24
  {% elsif post.image %}
31
- {% capture image_path %}{{post.image | remove_first: '/'}}{% endcapture %}
32
- {% capture full_path %}{{post.image }}{% endcapture %}
25
+ {% capture full_path %}{{post.image | replace: '/assets/images/', '' }}{% endcapture %}
33
26
  {% else %}
34
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
35
- data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
27
+ {% capture full_path %}{{site.data.settings.social_share_image | replace: '/assets/images/', '' }}{% endcapture %}
36
28
  {% endif %}
29
+ {% picture blogThumb {{full_path}} alt=post.title %}
37
30
  </div>
38
31
  <div class="col-md-9 col-sm-9 col-xs-9 ">
39
32
  {{post.title | truncate: 40}}
@@ -70,24 +63,17 @@
70
63
  <div class="row featured_blog_post">
71
64
  <div class="col-md-3 col-sm-3 col-xs-3 no-padding">
72
65
  {% if post.image.thumb %}
73
- {% capture image_path %}{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
74
- {% capture full_path %}/{{site.blog_images_dir}}thumbs/{{post.image.thumb}}{% endcapture %}
75
- {% elsif post.image.name %}
76
- {% capture image_path %}{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
77
- {% capture full_path %}/{{site.blog_images_dir}}{{post.image.name}}{% endcapture %}
78
- {% elsif post.image.path %}
79
- {% capture image_path %}{{post.image.path | remove_first: '/' }}{% endcapture %}
80
- {% capture full_path %}{{post.image.path }}{% endcapture %}
81
- {% elsif post.image == site.data.settings.social_share_image %}
82
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{{site.data.settings.placeholder}}"
83
- alt="{{post.title}}" class="center-block img-responsive lazyload" />
84
- {% elsif post.image %}
85
- {% capture image_path %}{{post.image | remove_first: '/' }}{% endcapture %}
86
- {% capture full_path %}{{post.image }}{% endcapture %}
87
- {% else %}
88
- <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
89
- data-src="{{site.data.settings.placeholder}}" alt="{{post.title}}" class="img-responsive lazyload"/>
90
- {% endif %}
66
+ {% capture full_path %}blog/thumbs/{{post.image.thumb}}{% endcapture %}
67
+ {% elsif post.image.path %}
68
+ {% capture full_path %}{{post.image.path | replace: '/assets/images/', '' }}{% endcapture %}
69
+ {% elsif post.image == site.data.settings.social_share_image %}
70
+ {% capture full_path %}{{site.data.settings.social_share_image | replace: '/assets/images/', '' }}{% endcapture %}
71
+ {% elsif post.image %}
72
+ {% capture full_path %}{{post.image | replace: '/assets/images/', '' }}{% endcapture %}
73
+ {% else %}
74
+ {% capture full_path %}{{site.data.settings.social_share_image | replace: '/assets/images/', '' }}{% endcapture %}
75
+ {% endif %}
76
+ {% picture blogThumb {{full_path}} alt=post.title %}
91
77
  </div>
92
78
  <div class="col-md-9 col-sm-9 col-xs-9 ">
93
79
  {{post.title | truncate: 40}}
@@ -9,4 +9,8 @@ layout: base
9
9
  {% else %}
10
10
  {% include breadcrumb.html %}
11
11
  {% endif %}
12
- {{content}}
12
+ {% if page.flow %}
13
+ {% include flow.html flow=page.flow %}
14
+ {% else % }
15
+ {{content}}
16
+ {% endif %}
@@ -3,14 +3,18 @@ layout: base
3
3
  title: Blog
4
4
  css-package: blog
5
5
  js-package: blog
6
+ pagination:
7
+ enabled: true
8
+ category: blog
6
9
  ---
7
10
  <div class="row" id="content-container">
8
11
  <div class="container">
9
12
  {% include display-blog-posts.html %}
10
- {% if page.news %}
11
- {% include pagination.html path="/news/:num/"%}
13
+ {% if page.pagination_base_url %}
14
+ {% assign paginationUrl = page.pagination_base_url | append: ':num/' %}
12
15
  {% else %}
13
- {% include pagination.html path="/blog/:num/"%}
16
+ {% assign paginationUrl = "/blog/:num/" %}
14
17
  {% endif %}
18
+ {% include pagination.html pagination_permalink=paginationUrl %}
15
19
  </div>
16
20
  </div>
data/_layouts/post.html CHANGED
@@ -3,7 +3,13 @@ layout: base
3
3
  js-package: blog
4
4
  css-package: blog
5
5
  ---
6
- <div class="row overlay background-image {% if page.image.background-class %}{{page.image.background-class}}{% endif %}" id="jumbotron" style="background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{% if page.image.path %}{{page.image.path}}{% else %}{{page.image}}{% endif %}');"> <!--Row -->
6
+ <div class="row overlay background-image {% if page.image.background-class %}{{page.image.background-class}}{% endif %}" id="jumbotron">
7
+ {% if page.image.path %}
8
+ {% assign image_path = page.image.path | replace: '/assets/images/','' %}
9
+ {% elsif page.image %}
10
+ {% assign image_path = page.image | replace: '/assets/images/','' %}
11
+ {% endif %}
12
+ {% picture backgroundImage {{image_path}} alt=page.title %}
7
13
  <div id="jumbotron-content" class="flex-container"> <!--Jumbotron div -->
8
14
  <div class="container flex-center" id="jumbotron-text"> <!--Container -->
9
15
  <h1 id="jumbotron-heading">{{page.title}}</h1>
data/_sass/core/blog.scss CHANGED
@@ -182,7 +182,7 @@ article {
182
182
  }
183
183
  }
184
184
  // BLOG SIDEBAR
185
- .blog-sidebar {
185
+ #wrapper .blog-sidebar {
186
186
  padding: 15px;
187
187
  margin-top: 40px;
188
188
  margin-bottom: 40px;
@@ -49,6 +49,27 @@
49
49
  background-position-y: 0px !important;
50
50
  background-position-x: center !important;
51
51
  }
52
+ #jumbotron picture img {
53
+ position: absolute;
54
+ width: 100%;
55
+ top: 0;
56
+ left: 0px;
57
+ object-fit: cover;
58
+ height: 100%;
59
+ }
60
+ #jumbotron picture:before {
61
+ content: '';
62
+ position: absolute;
63
+ top: 0;
64
+ right: 0;
65
+ bottom: 0;
66
+ height: $jumbotron-height;
67
+ left: 0;
68
+ background-image: linear-gradient(to bottom right, #000, #000);
69
+ opacity: .6;
70
+ width: 100%;
71
+ z-index: 1;
72
+ }
52
73
  video#jumbotronVideo {
53
74
  position: absolute;
54
75
  right: 0;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: '4.8'
4
+ version: 4.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -373,9 +373,11 @@ files:
373
373
  - _includes/blog-filler-element.html
374
374
  - _includes/breadcrumb.html
375
375
  - _includes/carousel-header.html
376
+ - _includes/core/call-to-action-banner.html
376
377
  - _includes/css.html
377
378
  - _includes/display-blog-posts.html
378
379
  - _includes/disqus-comments.html
380
+ - _includes/flow.html
379
381
  - _includes/footer.html
380
382
  - _includes/github-edit.html
381
383
  - _includes/google-analytics.html
@@ -404,9 +406,6 @@ files:
404
406
  - _includes/youtube.html
405
407
  - _layouts/author.html
406
408
  - _layouts/base.html
407
- - _layouts/container-breadcrumb-tabs.html
408
- - _layouts/container-breadcrumb.html
409
- - _layouts/container.html
410
409
  - _layouts/default.html
411
410
  - _layouts/error.html
412
411
  - _layouts/jumbotron-container.html
@@ -1,10 +0,0 @@
1
- ---
2
- layout: base
3
- ---
4
- {% include breadcrumb.html %}
5
- <div class="row" id="content-container">
6
- {% include sticky-tab-bar.html %}
7
- <div class="container">
8
- {{ content }}
9
- </div>
10
- </div>
@@ -1,19 +0,0 @@
1
- ---
2
- layout: base
3
- ---
4
- {% if page.jumbotron.carousel-images %}
5
- {% include carousel-header.html images=page.jumbotron.carousel-images %}
6
- {% include jumbotron.html %}
7
- {% elsif page.jumbotron %}
8
- {% include jumbotron.html %}
9
- {% else %}
10
- {% include breadcrumb.html %}
11
- {% endif %}
12
- <div class="row" id="content-container">
13
- {% if page.sticky-tab-bar %}
14
- {% include sticky-tab-bar.html %}
15
- {% endif %}
16
- <div class="container">
17
- {{ content }}
18
- </div>
19
- </div>
@@ -1,8 +0,0 @@
1
- ---
2
- layout: base
3
- ---
4
- {% if page.carousel %}
5
- {% include carousel-header.html images=site.page.images %}
6
- {% endif %}
7
- {% include jumbotron.html %}
8
- {{content}}