jumbo-jekyll-theme 3.0.35 → 3.0.36

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: 9ef3a4f81452f4f290a23f14f8e9994114ff3a1f7006b413b0507ef4ba30cc01
4
- data.tar.gz: 9fea78edad2864f3c8ec210fb6d951c9f2853df3c0bc6ba4aab1124b55033eb0
3
+ metadata.gz: b0637f5046722ac9dc33b30bec7d31aa208e0da532d5baf9b24253daa1f208cf
4
+ data.tar.gz: fdb93022748b4f2bc99780ab54ffee750f126792924d27cf821c658b01fc39b1
5
5
  SHA512:
6
- metadata.gz: 951d2fbf94e9176344dc56010f0d52b2894c45c5ea7eee10996a4ed17462524c051aee81beef1d2bbc8f5516c6117dd31b695533d15c6461079d95afdb87d3f2
7
- data.tar.gz: fd4b9d72ab9bf60e328b49089867d44c3602af7ffd52d50be400caebbd9f3fca10af23f4ddfaa93a9c929526052c236e5a8a1260e0896af0ce76ce09814ebeb6
6
+ metadata.gz: '09a720e7b6b2006ea275d0dbae4443971ab22c2d31cc9923ec67cc6fe4196ba67b654108f272884b8fae7a9c9b889f1f601e9c0dcbc2d83875e38204e3acf3f7'
7
+ data.tar.gz: 5148dd56cfbc42a2609a182698898ce94ce9405891c8fe08623df95c7dc1210a66c360d1c63e0754ef1a4c76f33bf4403390dac61ef9bb9b246c3b85157fd638
data/_data/settings.yml CHANGED
@@ -69,7 +69,7 @@ blog:
69
69
  # country_code: UK
70
70
  # Disqus Comments
71
71
  disqus:
72
- enabled: false
72
+ enabled: true
73
73
  shortname: http-www-jumbojekyll-co-uk
74
74
  # # Mailchimp settings
75
75
  # mailchimp:
@@ -3,53 +3,62 @@
3
3
  <h3>Comments</h3>
4
4
  <div class="disqus"></div>
5
5
  <script type="text/javascript">
6
- $(document).ready(function(){
7
- var disqus_shortname = '{{ site.data.settings.disqus.shortname }}';
8
- var options =
9
- {
10
- scriptUrl: '//' + disqus_shortname + '.disqus.com/embed.js',
11
- /*
12
- @type: string (url)
13
- @default: none
14
- @required
15
- URL of Disqus' executive JS file. The value is memorized on the first function call
16
- and ignored otherwise because Disqus allows only one instance per page at the time.
17
- */
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
+ */
18
26
 
19
- laziness: 1,
20
- /*
21
- @type: int (>=0)
22
- @default: 1
23
- Sets the laziness of loading the widget: (viewport height) * laziness . For example:
24
- 0 - widget load starts when at the least a tiny part of it gets in the viewport;
25
- 1 - widget load starts when the distance between the widget zone and the viewport is no more than the height of the viewport;
26
- 2 - 2x viewports, etc.
27
- */
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
+ */
28
36
 
29
- throttle: 250,
30
- /*
31
- @type: int (milliseconds)
32
- @default: 250
33
- Defines how often the plugin should make calculations during the
34
- processes such as resize of a browser's window or viewport scroll.
35
- 250 = 4 times in a second.
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
+ */
37
45
 
38
- /*
39
- @type: function
40
- @default: none
41
- Disqus-native options. Check Disqus' manual for more information.
42
- */
43
- disqusConfig: function()
44
- {
45
- this.page.title = '{{page.title}}';
46
- this.page.url = '{{site.url}}{{page.url}}';
47
- this.page.identifier = '{{page.url}}';
48
- }
49
- };
50
- // jQuery
51
- $.disqusLoader( '.disqus', options);
52
- });
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
+ });
53
62
  </script>
54
63
  </section>
55
64
  {% endunless %}
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.35
4
+ version: 3.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby