1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 18:36:11 +01:00

add Disqus comments functionality, activate on whitepaper

This commit is contained in:
Matthias Kretschmann 2016-01-17 16:17:28 +01:00
parent 7a7a62700b
commit 689d5a938d
6 changed files with 59 additions and 0 deletions

View File

@ -10,6 +10,7 @@ email:
contact: contact@bigchaindb.com contact: contact@bigchaindb.com
twitter: BigchainDB twitter: BigchainDB
disqus: bigchain
# Track all the things # Track all the things

View File

@ -34,6 +34,7 @@
// Content types // Content types
@import 'bigchain/_content-page'; @import 'bigchain/_content-page';
@import 'bigchain/_comments';
// specific page styles // specific page styles
@import 'page-front'; @import 'page-front';

View File

@ -0,0 +1,16 @@
//
// Comments
// --------------
// bigchain.io
//
.comments {
margin-bottom: ($spacer * 2);
.row > h1 {
border-bottom: 2px solid $gray-lightest;
padding-bottom: $spacer;
margin-bottom: ($spacer * 2);
text-align: center;
}
}

View File

@ -66,3 +66,33 @@ svg4everybody.js
{% else %} {% else %}
<script async src="//www.google-analytics.com/analytics_debug.js"></script> <script async src="//www.google-analytics.com/analytics_debug.js"></script>
{% endif%} {% endif%}
<!--
//
// Disqus comments
//
-->
{% if page.comments %}
<script>
var disqus_config = function () {
this.page.url = '{{ site.url }}{{ page.url }}';
this.page.identifier = '{{ page.id }}';
this.page.title = '{{ page.title }}';
};
{% if jekyll.environment == "development" %}
var disqus_developer = 1;
{% endif %}
(function() {
var d = document, s = d.createElement('script');
s.src = '//{{ site.disqus }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endif %}

View File

@ -24,3 +24,12 @@ layout: base
{% endif %} {% endif %}
</section> </section>
{% if page.comments %}
<footer class="comments">
<div class="row">
<h1 id="comments">Comments</h1>
<div id="disqus_thread"></div>
</div>
</footer>
{% endif %}

View File

@ -2,6 +2,8 @@
layout: page layout: page
title: 'Bigchain: A Scalable Blockchain Database' title: 'Bigchain: A Scalable Blockchain Database'
comments: true
--- ---
Trent McConaghy, Rodolphe Marques, Andreas Müller Trent McConaghy, Rodolphe Marques, Andreas Müller