jumbo-jekyll-theme 3.0.37 → 3.0.38

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: 465340daf789dfdc1734f405bb261f4b23fb72576d757006ea5a49d4e3f74595
4
- data.tar.gz: a43a6be5996298d9e45d8ac4d3066a60e3794f76f6123dc643edf0f506f8bbbe
3
+ metadata.gz: 4e00477f515e8c0014ec074c2a404a015fd23917fc18eb7000b505624482238b
4
+ data.tar.gz: 48606683199bf13f90fa40b9623e35543af226ec3ac072953e7f5fb52c32f200
5
5
  SHA512:
6
- metadata.gz: 375f2a8db9a80546b06341881c38ed135a5a277d65982bd896fd6fe549f863b87b6dab630ae9b67b72667551f2912c15bb616e99916fbd8535425ebd3f5aecd3
7
- data.tar.gz: b06d1117274135c2c62d65f6f4223afdda59c2633265057f5fb0c04b1383a5e5491d27f32773ebeeef3208ce48fe372cc13aaa498a61daba26198c252d93f242
6
+ metadata.gz: '09b275bd7062e050a693c03bd5ac1c565c11d5a0859023c5837d15628f99313404144f8aae5b1425bfc5dd0973a7941a51408ad2d9f7a4c02d7997f9b1d8de73'
7
+ data.tar.gz: '07189fb7e87c055ab5cc3656a2c28a5c73d2fd62a1c2e422f8189f410161fc622469d9452a73ebd4a39e5da9dfd4adf411c82b3187ded403928f5fe794e14b49'
@@ -1,65 +1,8 @@
1
1
  {% unless page.comments == false %}
2
2
  <section id="comments-section">
3
3
  <h3>Comments</h3>
4
+ <div class="disqus-placeholder">Loading comments...</div>
4
5
  <div class="disqus"></div>
5
- <script type="text/javascript">
6
- function defer(method) {
7
- if (window.jQuery) {
8
- method();
9
- } else {
10
- setTimeout(function() { defer(method) }, 50);
11
- }
12
- }
13
- defer(function () {
14
- $(document).ready(function(){
15
- var disqus_shortname = '{{ site.data.settings.disqus.shortname }}';
16
- var options =
17
- {
18
- scriptUrl: '//' + disqus_shortname + '.disqus.com/embed.js',
19
- /*
20
- @type: string (url)
21
- @default: none
22
- @required
23
- URL of Disqus' executive JS file. The value is memorized on the first function call
24
- and ignored otherwise because Disqus allows only one instance per page at the time.
25
- */
26
-
27
- laziness: 1,
28
- /*
29
- @type: int (>=0)
30
- @default: 1
31
- Sets the laziness of loading the widget: (viewport height) * laziness . For example:
32
- 0 - widget load starts when at the least a tiny part of it gets in the viewport;
33
- 1 - widget load starts when the distance between the widget zone and the viewport is no more than the height of the viewport;
34
- 2 - 2x viewports, etc.
35
- */
36
-
37
- throttle: 250,
38
- /*
39
- @type: int (milliseconds)
40
- @default: 250
41
- Defines how often the plugin should make calculations during the
42
- processes such as resize of a browser's window or viewport scroll.
43
- 250 = 4 times in a second.
44
- */
45
-
46
- /*
47
- @type: function
48
- @default: none
49
- Disqus-native options. Check Disqus' manual for more information.
50
- */
51
- disqusConfig: function()
52
- {
53
- this.page.title = '{{page.title}}';
54
- this.page.url = '{{site.url}}{{page.url}}';
55
- this.page.identifier = '{{page.url}}';
56
- }
57
- };
58
- // jQuery
59
- $.disqusLoader( '.disqus', options);
60
- });
61
- });
62
- </script>
63
6
  </section>
64
7
  {% endunless %}
65
8
 
@@ -56,3 +56,4 @@ h1#featured-image-blog-title {
56
56
  #wrapper h3.panel-title {
57
57
  color: $blog-panel-title-colour;
58
58
  }
59
+ .disqus-placeholder.is-hidden { display: none; }
@@ -0,0 +1,50 @@
1
+ $(document).ready(function(){
2
+ var options =
3
+ {
4
+ scriptUrl: '//96Boards.disqus.com/embed.js',
5
+ /*
6
+ @type: string (url)
7
+ @default: none
8
+ @required
9
+ URL of Disqus' executive JS file. The value is memorized on the first function call
10
+ and ignored otherwise because Disqus allows only one instance per page at the time.
11
+ */
12
+
13
+ laziness: 1,
14
+ /*
15
+ @type: int (>=0)
16
+ @default: 1
17
+ Sets the laziness of loading the widget: (viewport height) * laziness . For example:
18
+ 0 - widget load starts when at the least a tiny part of it gets in the viewport;
19
+ 1 - widget load starts when the distance between the widget zone and the viewport is no more than the height of the viewport;
20
+ 2 - 2x viewports, etc.
21
+ */
22
+
23
+ throttle: 250,
24
+ /*
25
+ @type: int (milliseconds)
26
+ @default: 250
27
+ Defines how often the plugin should make calculations during the
28
+ processes such as resize of a browser's window or viewport scroll.
29
+ 250 = 4 times in a second.
30
+ */
31
+
32
+ /*
33
+ @type: function
34
+ @default: none
35
+ Disqus-native options. Check Disqus' manual for more information.
36
+ */
37
+ disqusConfig: function()
38
+ {
39
+ this.page.title = 'Page Title';
40
+ this.page.url = 'Page URL';
41
+ this.page.identifier = 'Identifier';
42
+ this.callbacks.onReady = [function()
43
+ {
44
+ $( '.disqus-placeholder' ).addClass( 'is-hidden' );
45
+ }];
46
+ }
47
+ };
48
+ // jQuery
49
+ $.disqusLoader( '.disqus', options);
50
+ });
@@ -5,6 +5,7 @@
5
5
  //= require vendor/lazysizes
6
6
  //= require vendor/featherlight
7
7
  //= require vendor/disqus-loader
8
+ //= require app/blog-comments
8
9
 
9
10
  //= require app/main
10
11
  //= require app/search
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.0.37
4
+ version: 3.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
@@ -528,6 +528,7 @@ files:
528
528
  - assets/images/placeholder.png
529
529
  - assets/images/prev.png
530
530
  - assets/images/social-media-image.png
531
+ - assets/js/app/blog-comments.js
531
532
  - assets/js/app/custom.js
532
533
  - assets/js/app/facebook.js
533
534
  - assets/js/app/fly.js