bulma-clean-theme 0.6.1 → 0.6.2

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: f6648a82bf48ab804187c7d92571e7a67a1b3d62521bfb861e883eb329f2f1c3
4
- data.tar.gz: 7cff7df196f7fe0397f6f87dc8ffd0a1b2e02be79e52991d4bc0ec500663d458
3
+ metadata.gz: 304354c4e51daca02df2b74441042f7b005b0715c66beeafa7204f818084f9b5
4
+ data.tar.gz: c08cb5d6df95debfb326470b8146e7f0a3692d6caf8d306c21f47136cb8571bf
5
5
  SHA512:
6
- metadata.gz: 667f3c97141da8bac19e339c49c46ea1eb5ba64d192e7086c28f1e6759364ab8fc7645e2a95ce2b76ebe43f80c724f8340ea04e5f2b25ed0202c829e9222cf44
7
- data.tar.gz: be403f6606c71935cc163794965e867b0c71adc1bad08d45cb08161bd7ae130ec59ebce788fb650bc82627fa3512420fbb220fa52c9ba227345a6ed6e2ce6eba
6
+ metadata.gz: 6aaa721c32a6386d16837bd8188a051a51e22b589729fbbcec7028c9667611dbaab1da1709b2ef30cacb939e8b8d39d9d1db4c6e041d493ee36aca61c14dacb1
7
+ data.tar.gz: 13f61111a8cc9fa43708f4c038188b230103989caffb09002382ca1602fee89209c4753cdcff1ffe863a95e7dc53814fd34c85b2ffed66e43b47e0e1d565edc5
data/README.md CHANGED
@@ -25,6 +25,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
25
25
  * [Callouts](#callouts)
26
26
  * [Favicon](#favicon)
27
27
  * [Showcases](#showcases)
28
+ * [Disqus](#disqus)
28
29
  * [Contributing](#contributing)
29
30
  * [Development](#development)
30
31
  * [Licence](#licence)
@@ -455,6 +456,20 @@ showcase: showcase_example
455
456
  show_sidebar: false
456
457
  ```
457
458
 
459
+ ### Disqus
460
+
461
+ Disqus comments are available for posts. To be able to use them, you need to set your disqus shortname in `_config.yml`. Then you need to set your Jekyll environment to production:
462
+
463
+ ```JEKYLL_ENV=production bundle exec jekyll build```.
464
+
465
+ Comments are enabled by default. If you want to disable them, set in the front matter this setting:
466
+
467
+ ```markdown
468
+ comments: false
469
+ ```
470
+
471
+
472
+
458
473
  ## Contributing
459
474
 
460
475
  Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/bulma-clean-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -0,0 +1,17 @@
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+ (function() {
10
+ var d = document, s = d.createElement('script');
11
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
12
+ s.setAttribute('data-timestamp', +new Date());
13
+ (d.head || d.body).appendChild(s);
14
+ })();
15
+ </script>
16
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
17
+ {% endif %}
data/_layouts/post.html CHANGED
@@ -14,3 +14,7 @@ layout: default
14
14
  <span class="tag is-primary">{{ tag }}</span>
15
15
  {% endfor %}
16
16
  </div>
17
+
18
+ {% if site.disqus.shortname %}
19
+ {% include disqus.html %}
20
+ {% endif %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-clean-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -146,6 +146,7 @@ files:
146
146
  - LICENSE.txt
147
147
  - README.md
148
148
  - _includes/callouts.html
149
+ - _includes/disqus.html
149
150
  - _includes/footer-scripts.html
150
151
  - _includes/footer.html
151
152
  - _includes/google-analytics.html