jumbo-jekyll-theme 3.6.3 → 3.6.4

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: 832ecdabd1d7d6dc946f94c1ac3851ae0c3d66907c9b47b9bdf34bfaa350dbc0
4
- data.tar.gz: 618a244ae1fcb6928d1888b7062a96dfa34ff35417ae6a50a57965df98e15fb0
3
+ metadata.gz: 4b5ebf0715c57e4d2230b76e5aee98e214018d572b61cfd2f11e091cb4c49e45
4
+ data.tar.gz: d0f4cf6793aae6bffe761e314ac22b892066a3d106154acc80c387908995f3e1
5
5
  SHA512:
6
- metadata.gz: 8fd49fe14de1183a6d19c5c9d7469316087351169b924dce3547c5805853f552c510799a2cea9726b5d885d1247a6d7e2cf3367054652b96370ab6a4fb2dcf4e
7
- data.tar.gz: f1d9e0b4e6d4d0e9a89a8b0a514639b27856fd02f2d87ee78300f2db06c3e41414fdde0aa574191900df257cfd04bd8f4b46e016be9b367696d1d6112fbf2939
6
+ metadata.gz: 5f148897252be98f3c4c39ecd6893f5db94e47d07a83a6f99627d4c6e8d6300916d840d97712e04ef82ee615fb4e9a8e7b928b94255773ab0b63f2b6c3c27f2a
7
+ data.tar.gz: 9e664eef78eeb1d5aa951c8b9f02f731bbf6070da4eab2c7f99b0bc4efa08ff0e9a799c9b422627add3ad75f55ebc37ce25225fb9d7072b3fb153f5509d28027
@@ -2,7 +2,7 @@
2
2
  search:
3
3
  enabled: true
4
4
  label: Linaro
5
- universal-nav: true
5
+ universal-nav: false
6
6
  # Nav Brand Config
7
7
  brand:
8
8
  text: Jumbo Jekyll Theme
@@ -1,4 +1,4 @@
1
- {% if site.data.settings.tags_enabled %}
1
+ {% if site.data.settings.blog.tags_enabled %}
2
2
  {% if post.tags %}
3
3
  <h3>Tags</h3>
4
4
  {% assign tags = post.tags %}
@@ -105,10 +105,14 @@ css-package: blog
105
105
  {% include disqus-comments.html %}
106
106
  </div>
107
107
  <div class="col-md-3 blog-sidebar no-padding">
108
- {% if page.tags %}
109
- {% assign post_tags = page.tags %}
110
- {% elsif page.keywords %}
111
- {% assign post_tags = page.tags %}
108
+ {% if site.data.settings.blog.tags_enabled %}
109
+ {% if page.tags %}
110
+ {% assign post_tags = page.tags %}
111
+ {% elsif page.keywords %}
112
+ {% assign post_tags = page.tags %}
113
+ {% else %}
114
+ {% assign post_tags = "" %}
115
+ {% endif %}
112
116
  {% else %}
113
117
  {% assign post_tags = "" %}
114
118
  {% endif %}
@@ -16,6 +16,8 @@ $navbar-hover-background-color: $brand-primary !default;
16
16
  $navbar-height: 66px;
17
17
  $navbar-inverse-bg: #000;
18
18
  $navbar-inverse-color: #fff;
19
+ $navbar-submenu-bg-color: #3e3e3e !default;
20
+ $navbar-submenu-color: #fff !default;
19
21
  // Breadcrumb
20
22
  $breadcrumb-background-color: $brand-primary !default;
21
23
  $breadcrumb-title-color: #fff !default;
@@ -977,4 +977,24 @@ li.dropdown.menu.active.open > a {
977
977
  }
978
978
  #main-navigation li.main a.main-anchor {
979
979
  transition: background-color 300ms linear;
980
- }
980
+ }
981
+
982
+ @media(max-width: $screen-sm-min){
983
+ #main-navigation ul{
984
+ li {
985
+ a {
986
+ text-align:center;
987
+ }
988
+ }
989
+ .dropdown-menu.sub-menu {
990
+ margin-left:0px;
991
+ li {
992
+ background-color: $navbar-submenu-bg-color;
993
+ a{
994
+ color: $navbar-submenu-color;
995
+ }
996
+ }
997
+ }
998
+
999
+ }
1000
+ }
@@ -4,8 +4,8 @@ $(window).click(function() {
4
4
  });
5
5
  $(document).ready(function () {
6
6
  // Toggle the sub menu when clicked.
7
- $('.dropdown-submenu.sub-menu a').on("click", function(e){
8
- if($(this).hasClass("active")){
7
+ $('.dropdown-submenu.sub-menu a').on("click", function (e) {
8
+ if ($(this).hasClass("active")) {
9
9
  $(this).next('ul').hide();
10
10
  $(this).removeClass("active");
11
11
  }
@@ -17,74 +17,73 @@ $(document).ready(function () {
17
17
  }
18
18
  e.stopPropagation();
19
19
  });
20
- // Navigation bar setup
20
+ // Theme navbar setup
21
21
  var wrapper = $('#wrapper');
22
22
  var universalNav = false;
23
23
  var universalNavHeight = 0;
24
- if("#universal-nav".length>0){
24
+ if($("#universal-nav").length > 0){
25
25
  var universalNav = $('#universal-nav');
26
26
  var universalNavHeight = $("#universal-nav").height();
27
27
  }
28
28
  var stickyOffset = $('#main-navigation').offset().top;
29
29
  var wrapper = $('#wrapper');
30
- function navbar(){
31
- var sticky = $('#main-navigation'),
32
- scroll = $(window).scrollTop();
33
30
 
34
- if (scroll >= stickyOffset)
35
- {
31
+ function navbar() {
32
+ // Main Navigation Selector
33
+ var sticky = $('#main-navigation');
34
+ // Scroll value
35
+ var scroll = $(window).scrollTop();
36
+
37
+ if (scroll > stickyOffset) {
36
38
  sticky.removeClass('navbar-static');
37
- wrapper.css('margin-top', $('#main-navigation').height() + universalNavHeight);
38
- if(universalNav){
39
- universalNav.hide();
39
+ if(universalNav === false){
40
+ wrapper.css('margin-top', "66px");
41
+ }
42
+ else{
43
+ wrapper.css('margin-top', "104px");
44
+ }
45
+
46
+ if (universalNav) {
47
+ universalNav.hide();
40
48
  }
49
+
41
50
  sticky.addClass('navbar-fixed-top');
42
- }
43
- else
44
- {
51
+ }
52
+ else {
45
53
  sticky.removeClass('navbar-fixed-top');
46
54
  wrapper.css('margin-top', '0px');
47
- if(universalNav){
48
- universalNav.slideDown("fast");
55
+
56
+ if (universalNav) {
57
+ universalNav.slideDown(100);
49
58
  }
59
+
50
60
  sticky.addClass('navbar-static');
51
61
  }
52
62
  }
53
63
  navbar();
54
- $(window).scroll(function(){
64
+ $(window).scroll(function () {
55
65
  navbar();
56
66
  });
67
+
57
68
  // Initialise dropdowns
58
69
  $('.dropdown-toggle').dropdown();
59
-
60
- //Reset form when bootstrap modal closes.
70
+ // Reset forms when bootstrap modal closes.
61
71
  $('.modal').on('hidden.bs.modal', function(){
62
72
  $(this).find('form')[0].reset();
63
73
  });
64
-
65
- $('#stacked-nav-bar').on('show.bs.collapse', function() {
66
- $('.nav-pills').addClass('nav-stacked');
67
- });
68
-
69
- //Unstack menu when not collapsed
74
+ // Stacked Navbar
70
75
  $('#stacked-nav-bar').on('hidden.bs.collapse', function() {
71
76
  $('.nav-pills').removeClass('nav-stacked');
72
77
  });
73
- $("a.dev-services").click(function(){
74
- $("#developer-services-contact-modal").modal('show');
75
- });
76
-
77
- //Scrolling sticking on IOS7
78
+ // Scrolling sticking on IOS7 (Bug fix)
78
79
  if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
79
-
80
+ // Dropdown menu JS
80
81
  $('nav li.dropdown.main > ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
81
82
  event.preventDefault();
82
83
  event.stopPropagation();
83
84
  $(this).parent().addClass('open');
84
-
85
85
  var menu = $(this).parent().find("ul");
86
86
  var menupos = menu.offset();
87
-
88
87
  if ((menupos.left + menu.width()) + 30 > $(window).width()) {
89
88
  var newpos = - menu.width();
90
89
  } else {
@@ -94,8 +93,7 @@ $(document).ready(function () {
94
93
  });
95
94
  // Remove any zoom class added to body
96
95
  $('body').css('zoom', '');
97
-
98
- // External Links Opening in new window.
96
+ // Open External links in a new tab
99
97
  $('a').each(function() {
100
98
  var a = new RegExp('/' + window.location.host + '/');
101
99
  if (!a.test(this.href)) {
@@ -113,13 +111,11 @@ $(document).ready(function () {
113
111
  $('.nav-tabs a').on('shown', function (e) {
114
112
  window.location.hash = e.target.hash.replace("#", "#" + prefix);
115
113
  });
114
+ // Carousel image header - Lazy loading the carousel images
116
115
  var cHeight = 0;
117
-
118
116
  $('#header-carousel').on('slide.bs.carousel', function (e) {
119
117
  var $nextImage = null;
120
-
121
118
  $activeItem = $('.item.active', this);
122
-
123
119
  if (e.direction == 'left'){
124
120
  $nextImage = $activeItem.next('.item');
125
121
  } else {
@@ -129,19 +125,16 @@ $(document).ready(function () {
129
125
  $nextImage = $activeItem.prev('.item');
130
126
  }
131
127
  }
132
-
133
128
  // prevents the slide decrease in height
134
129
  if (cHeight == 0) {
135
130
  cHeight = $(this).height();
136
131
  $activeItem.next('.item').height(cHeight);
137
132
  }
138
-
139
133
  // prevents the loaded image if it is already loaded
140
134
  var src = $nextImage.attr('data-src');
141
-
142
135
  if (typeof src !== "undefined" && src != "") {
143
- $nextImage.css('background-image', 'url(' + src + ')');
144
- $nextImage.data('data-src', '');
136
+ $nextImage.css('background-image', 'url(' + src + ')');
137
+ $nextImage.data('data-src', '');
145
138
  }
146
139
  });
147
140
  // Cookie Consent Setup
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: 3.6.3
4
+ version: 3.6.4
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-01-23 00:00:00.000000000 Z
11
+ date: 2019-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -407,7 +407,6 @@ files:
407
407
  - _layouts/jumbotron-container.html
408
408
  - _layouts/jumbotron.html
409
409
  - _layouts/post-index.html
410
- - _layouts/post-old.html
411
410
  - _layouts/post.html
412
411
  - _layouts/redirect.html
413
412
  - _sass/_bootstrap-compass.scss
@@ -1,70 +0,0 @@
1
- ---
2
- js-package: blog
3
- css-package: blog
4
- layout: container
5
- ---
6
- {% if page.previous.url %}
7
- <a href="{{page.previous.url}}" class="previous_post_anchor">
8
- <div class="previous_post"></div>
9
- </a>
10
- {% endif %}
11
- {% if page.next.url %}
12
- <a href="{{page.next.url}}" class="next_post_anchor">
13
- <div class="next_post"></div>
14
- </a>
15
- {% endif %}
16
-
17
- <div class="col-md-9">
18
- <article class="post-content">
19
- <div class="post-info">
20
- <h1>{{page.title }}</h1>
21
-
22
- {% if page.date %}<small class="blog-date text-center"><em>Posted on <b>{{page.date | date: "%A, %B %-d, %Y"}}</b></em></small>{% endif %}
23
- {% if page.categories %}in <a href="/categories/#{{page.categories[0]}}">{{page.categories[0] | capitalize}}</a>{% endif %}
24
- {% if page.author %}
25
- {% assign author = site.authors | where: 'username' , page.author %}
26
- {% assign author = author[0] %}
27
- <em> By
28
- {% if author %}
29
- <a href="{{author.url}}">
30
- <strong>
31
- {{author.name}}
32
- </strong>
33
- </a>
34
- {% else %}
35
- <strong>
36
- {{page.author}}
37
- </strong>
38
- {% endif %}
39
-
40
- </em>
41
- {% endif %}
42
- </div>
43
- {{ content }}
44
- </article>
45
-
46
- <hr />
47
-
48
- {% comment %}
49
- TAGS - Check to see if the tags_enabled setting in settings.yml data file is toggled.
50
- {% endcomment %}
51
-
52
- {% include post-tags.html %}
53
-
54
- {% comment %}
55
- COMMENTS - Check to see if comments are toggled for this particular post.
56
- {% endcomment %}
57
-
58
- {% include post-comments.html %}
59
-
60
-
61
- </div>
62
-
63
- {% comment %}
64
- Display a right side bar.
65
- {% endcomment %}
66
-
67
- <div class="col-md-3 blog-sidebar">
68
- {% include post-sidebar.html %}
69
- </div>
70
-