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 +4 -4
- data/_includes/disqus-comments.html +1 -58
- data/_sass/app/blog.scss +1 -0
- data/assets/js/app/blog-comments.js +50 -0
- data/assets/js/package-blog.js +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e00477f515e8c0014ec074c2a404a015fd23917fc18eb7000b505624482238b
|
4
|
+
data.tar.gz: 48606683199bf13f90fa40b9623e35543af226ec3ac072953e7f5fb52c32f200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/_sass/app/blog.scss
CHANGED
@@ -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
|
+
});
|
data/assets/js/package-blog.js
CHANGED
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.
|
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
|