jumbo-jekyll-theme 3.0.35 → 3.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/settings.yml +1 -1
- data/_includes/disqus-comments.html +53 -44
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0637f5046722ac9dc33b30bec7d31aa208e0da532d5baf9b24253daa1f208cf
|
4
|
+
data.tar.gz: fdb93022748b4f2bc99780ab54ffee750f126792924d27cf821c658b01fc39b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a720e7b6b2006ea275d0dbae4443971ab22c2d31cc9923ec67cc6fe4196ba67b654108f272884b8fae7a9c9b889f1f601e9c0dcbc2d83875e38204e3acf3f7'
|
7
|
+
data.tar.gz: 5148dd56cfbc42a2609a182698898ce94ce9405891c8fe08623df95c7dc1210a66c360d1c63e0754ef1a4c76f33bf4403390dac61ef9bb9b246c3b85157fd638
|
data/_data/settings.yml
CHANGED
@@ -3,53 +3,62 @@
|
|
3
3
|
<h3>Comments</h3>
|
4
4
|
<div class="disqus"></div>
|
5
5
|
<script type="text/javascript">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
{
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
+
*/
|
37
45
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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 %}
|