jumbo-jekyll-theme 1.4.18 → 1.4.19

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
  SHA1:
3
- metadata.gz: 42f85f72b4d349c3bd72122cc498f5fca7c3867b
4
- data.tar.gz: a13c088a801912f08cfc41703b5881ac2e19a8d1
3
+ metadata.gz: 422ca940caee366078001adc504252ef47c701fb
4
+ data.tar.gz: 715eec52c356cc803da809b2734b7de03adfd94b
5
5
  SHA512:
6
- metadata.gz: 3c6680bbd6425a35dc7f8d2ef78503bc4b9978aab3c0f390ac91ab6a2698107b9f3dc72d9589595904268b2c2c243cf718b2d143f68774e4c7d3304143168845
7
- data.tar.gz: 17b3ef809d95289a288539ff5b57c98802f384355e30bc75788be09a27145a6aea26f60ca34871e2e075917e92bd4354e7ad91c8ab4fdf5c9c52c1a8fb27d54f
6
+ metadata.gz: 722082fea72543d65663eed20ac96315551e37c9201f03e33751a90584f9f6997152a2483aae2df498ba2c1bf1565efc849038fb499a3a025c0db7993e262bde
7
+ data.tar.gz: c5738709ce6310daffced9321b9e7bfcdcfaacf2affa043cd56f188dd3ef637715cfeaaba9c82f214736b045a805140a80d5f25a55194a774931504a9bbc143f
@@ -43,6 +43,8 @@ jekyll_tidy:
43
43
 
44
44
  # Permalink style to be used for paginating pages in pagination.html
45
45
  paginate_path: /blog/:num/
46
+ paginate_path_news: /news/:num/
47
+ paginate_path_authors: /authors/:num/
46
48
 
47
49
  # Jekyll Pagination V2 Configuration
48
50
  pagination:
@@ -0,0 +1,36 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <div class="text-center" id="pagination_panel">
3
+ <ul class="pagination pagination-sm">
4
+ {% if paginator.previous_page %}
5
+ <li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
6
+ {% else %}
7
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
8
+ {% endif %}
9
+
10
+ {% if paginator.page_trail %}
11
+ {% for trail in paginator.page_trail %}
12
+ <li {% if page.url == trail.path %}class="active"{% endif %}>
13
+ <a href="{% if trail.num == 1 %}/authors/{% else %}
14
+ {{ site.paginate_path_authors | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
15
+ title="{{trail.title}}">{{ trail.num }}</a>
16
+ </li>
17
+ {% endfor %}
18
+ {% else %}
19
+ {% for page in (1..paginator.total_pages) %}
20
+ {% if page == paginator.page %}
21
+ <li class="active"><a href="">{{ page }}</a></li>
22
+ {% elsif page == 1 %}
23
+ <li><a href="/authors/">{{ page }}</a></li>
24
+ {% else %}
25
+ <li><a href="{{ site.paginate_path_authors | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
26
+ {% endif %}
27
+ {% endfor %}
28
+ {% endif %}
29
+ {% if paginator.next_page %}
30
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
31
+ {% else %}
32
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
33
+ {% endif %}
34
+ </ul>
35
+ </div>
36
+ {% endif %}
@@ -0,0 +1,36 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <div class="text-center" id="pagination_panel">
3
+ <ul class="pagination pagination-sm">
4
+ {% if paginator.previous_page %}
5
+ <li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
6
+ {% else %}
7
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a></li>
8
+ {% endif %}
9
+
10
+ {% if paginator.page_trail %}
11
+ {% for trail in paginator.page_trail %}
12
+ <li {% if page.url == trail.path %}class="active"{% endif %}>
13
+ <a href="{% if trail.num == 1 %}/news/{% else %}
14
+ {{ site.paginate_path_news | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}"
15
+ title="{{trail.title}}">{{ trail.num }}</a>
16
+ </li>
17
+ {% endfor %}
18
+ {% else %}
19
+ {% for page in (1..paginator.total_pages) %}
20
+ {% if page == paginator.page %}
21
+ <li class="active"><a href="">{{ page }}</a></li>
22
+ {% elsif page == 1 %}
23
+ <li><a href="/news/">{{ page }}</a></li>
24
+ {% else %}
25
+ <li><a href="{{ site.paginate_path_news | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
26
+ {% endif %}
27
+ {% endfor %}
28
+ {% endif %}
29
+ {% if paginator.next_page %}
30
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
31
+ {% else %}
32
+ <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
33
+ {% endif %}
34
+ </ul>
35
+ </div>
36
+ {% endif %}
@@ -26,9 +26,6 @@
26
26
  {% endif %}
27
27
  {% endfor %}
28
28
  {% endif %}
29
-
30
-
31
-
32
29
  {% if paginator.next_page %}
33
30
  <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
34
31
  {% else %}
@@ -7,7 +7,11 @@ js-package: blog
7
7
  <div class="col-md-9">
8
8
  {{content}}
9
9
  {% include display-blog-posts.html %}
10
- {% include pagination.html %}
10
+ {% if page.news %}
11
+ {% include pagination.html %}
12
+ {% else %}
13
+ {% include pagination-news.html %}
14
+ {% endif %}
11
15
  </div>
12
16
 
13
17
  <div class="col-md-3 blog-sidebar">
@@ -4,6 +4,5 @@
4
4
  //= require vendor/lazysizes
5
5
 
6
6
  //= require app/main
7
- //= require app/search
8
7
  //= require app/tables
9
8
  //= require app/custom
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: 1.4.18
4
+ version: 1.4.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -299,6 +299,8 @@ files:
299
299
  - _includes/nav.html
300
300
  - _includes/newsletter.html
301
301
  - _includes/owl-carousel-homepage.html
302
+ - _includes/pagination-authors.html
303
+ - _includes/pagination-news.html
302
304
  - _includes/pagination.html
303
305
  - _includes/post-comments.html
304
306
  - _includes/post-sidebar.html
@@ -474,11 +476,9 @@ files:
474
476
  - assets/js/app/home.js
475
477
  - assets/js/app/main.js
476
478
  - assets/js/app/scroll-to-anchors.js
477
- - assets/js/app/search.js
478
479
  - assets/js/app/sticky-tab-bar.js
479
480
  - assets/js/app/tables.js
480
481
  - assets/js/package-blog.js
481
- - assets/js/package-developer-services.js
482
482
  - assets/js/package-extended.js
483
483
  - assets/js/package-home.js
484
484
  - assets/js/package-main.js
@@ -1,40 +0,0 @@
1
- function getAllUrlParams(url) {
2
- var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
3
- var obj = {};
4
- if (queryString) {
5
- queryString = queryString.split('#')[0];
6
- var arr = queryString.split('&');
7
-
8
- for (var i=0; i<arr.length; i++) {
9
- var a = arr[i].split('=');
10
- var paramNum = undefined;
11
- var paramName = a[0].replace(/\[\d*\]/, function(v) {
12
- paramNum = v.slice(1,-1);
13
- return '';
14
- });
15
-
16
- var paramValue = typeof(a[1])==='undefined' ? true : a[1];
17
- paramName = paramName.toLowerCase();
18
- paramValue = paramValue.toLowerCase();
19
- if (obj[paramName]) {
20
- if (typeof obj[paramName] === 'string') {
21
- obj[paramName] = [obj[paramName]];
22
- }
23
- if (typeof paramNum === 'undefined') {
24
- obj[paramName].push(paramValue);
25
- }
26
- else {
27
- obj[paramName][paramNum] = paramValue;
28
- }
29
- }
30
- else {
31
- obj[paramName] = paramValue;
32
- }
33
- }
34
- }
35
- return obj;
36
- }
37
-
38
- var searchQuery = getAllUrlParams().s;
39
-
40
- $('#searchIframe').attr('src', "https://search.linaro.org/search/&q=" + searchQuery);
@@ -1,11 +0,0 @@
1
- //= require vendor/jquery
2
- //= require vendor/bootstrap
3
- //= require vendor/cookieconsent
4
- //= require vendor/lazysizes
5
-
6
- //= require app/main
7
- //= require app/tables
8
- //= require vendor/mc-validate
9
- //= require vendor/jquery.validate
10
- //= require app/developer-services
11
- //= require app/custom