plainwhite 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/_layouts/post.html +17 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '046633988f302a8604d6b8019464a0f2ae018606'
|
4
|
+
data.tar.gz: 93b7823fe9cccca2dc1771d78d19600e2ffeaf4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203ab0555708763e647705fa8baabe28eca781d8a5c50729a4c409a756d5429560d39c05bdbde4b882ad6e7a105c39428654795fedad7d11bd6e80e23303a396
|
7
|
+
data.tar.gz: 7512945489cd0e165e22b772e1f79783549df30c82ea51838fe68838aa6ecfdbd3d17e08d7a6032ad2456268200a1e9c9b504f7528a6a05e0dff89eaf134e16d
|
data/README.md
CHANGED
@@ -43,6 +43,13 @@ plainwhite:
|
|
43
43
|
```
|
44
44
|
The placeholder portfolio image can be replaced by the desired image by placing it as `assets/portfolio.png` in your jekyll website.
|
45
45
|
|
46
|
+
**Comments (Disqus)**
|
47
|
+
Comments on posts can be enabled by specifying your disqus_shortname under plainwhite in `_config.yml`. For example,
|
48
|
+
```yaml
|
49
|
+
plainwhite:
|
50
|
+
disqus_shortname: games
|
51
|
+
```
|
52
|
+
|
46
53
|
**Google Analytics**
|
47
54
|
|
48
55
|
It can be enabled by specifying your analytics id under plainwhite in `_config.yml`
|
data/_layouts/post.html
CHANGED
@@ -17,4 +17,20 @@ layout: default
|
|
17
17
|
<div class="post">
|
18
18
|
{{ content }}
|
19
19
|
</div>
|
20
|
-
|
20
|
+
{%- if site.plainwhite.disqus_shortname -%}
|
21
|
+
<div id="disqus_thread" style="margin-top:25px"></div>
|
22
|
+
<script>
|
23
|
+
var disqus_config = function () {
|
24
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
25
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
26
|
+
};
|
27
|
+
(function() {
|
28
|
+
var d = document, s = d.createElement('script');
|
29
|
+
s.src = 'https://{{ site.plainwhite.disqus_shortname }}.disqus.com/embed.js';
|
30
|
+
s.setAttribute('data-timestamp', +new Date());
|
31
|
+
(d.head || d.body).appendChild(s);
|
32
|
+
})();
|
33
|
+
</script>
|
34
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
35
|
+
</div>
|
36
|
+
{%- endif -%}
|