plainwhite 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -0
  3. data/_layouts/post.html +17 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9171c17dbea6ed3f69cb04e81671f55dc2aa5878
4
- data.tar.gz: 6ef744907a13ec222df03c8c79ebf323c18c3e0a
3
+ metadata.gz: '046633988f302a8604d6b8019464a0f2ae018606'
4
+ data.tar.gz: 93b7823fe9cccca2dc1771d78d19600e2ffeaf4e
5
5
  SHA512:
6
- metadata.gz: 5130fe44dbe136f2ab36f20bd7f818abe57cb1feb582a39c114f04a318198e46c299a9955a79f5e3b1b2f1337196355d2642b4a3dfd4de55ee60989ad077c1a2
7
- data.tar.gz: 1f53288ff9e54e853b3ce269bec5117100d0dcd452c4b7811b90960d43b135c4f5bc911617748fcd5abcb2cd3238a1e87acfef1172eae904d5f9190514e91631
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
- </div>
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 -%}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plainwhite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samarjeet