mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-24 02:16:10 +01:00
add Disqus comments functionality, activate on whitepaper
This commit is contained in:
parent
7a7a62700b
commit
689d5a938d
@ -10,6 +10,7 @@ email:
|
||||
contact: contact@bigchaindb.com
|
||||
|
||||
twitter: BigchainDB
|
||||
disqus: bigchain
|
||||
|
||||
|
||||
# Track all the things
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
// Content types
|
||||
@import 'bigchain/_content-page';
|
||||
@import 'bigchain/_comments';
|
||||
|
||||
// specific page styles
|
||||
@import 'page-front';
|
||||
|
16
_src/_assets/styles/bigchain/_comments.scss
Normal file
16
_src/_assets/styles/bigchain/_comments.scss
Normal 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;
|
||||
}
|
||||
}
|
@ -66,3 +66,33 @@ svg4everybody.js
|
||||
{% else %}
|
||||
<script async src="//www.google-analytics.com/analytics_debug.js"></script>
|
||||
{% 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 %}
|
||||
|
@ -24,3 +24,12 @@ layout: base
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
|
||||
{% if page.comments %}
|
||||
<footer class="comments">
|
||||
<div class="row">
|
||||
<h1 id="comments">Comments</h1>
|
||||
<div id="disqus_thread"></div>
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
@ -2,6 +2,8 @@
|
||||
layout: page
|
||||
|
||||
title: 'Bigchain: A Scalable Blockchain Database'
|
||||
|
||||
comments: true
|
||||
---
|
||||
|
||||
Trent McConaghy, Rodolphe Marques, Andreas Müller
|
||||
|
Loading…
Reference in New Issue
Block a user