From 689d5a938d69de7d36af632a9448d53de9a45337 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 17 Jan 2016 16:17:28 +0100 Subject: [PATCH] add Disqus comments functionality, activate on whitepaper --- _config.yml | 1 + _src/_assets/styles/bigchain.scss | 1 + _src/_assets/styles/bigchain/_comments.scss | 16 +++++++++++ _src/_includes/scripts.html | 30 +++++++++++++++++++++ _src/_layouts/page.html | 9 +++++++ _src/whitepaper/index.md | 2 ++ 6 files changed, 59 insertions(+) create mode 100644 _src/_assets/styles/bigchain/_comments.scss diff --git a/_config.yml b/_config.yml index 4906596..394b582 100644 --- a/_config.yml +++ b/_config.yml @@ -10,6 +10,7 @@ email: contact: contact@bigchaindb.com twitter: BigchainDB +disqus: bigchain # Track all the things diff --git a/_src/_assets/styles/bigchain.scss b/_src/_assets/styles/bigchain.scss index 0eafdfd..5803bbc 100644 --- a/_src/_assets/styles/bigchain.scss +++ b/_src/_assets/styles/bigchain.scss @@ -34,6 +34,7 @@ // Content types @import 'bigchain/_content-page'; +@import 'bigchain/_comments'; // specific page styles @import 'page-front'; diff --git a/_src/_assets/styles/bigchain/_comments.scss b/_src/_assets/styles/bigchain/_comments.scss new file mode 100644 index 0000000..da4262c --- /dev/null +++ b/_src/_assets/styles/bigchain/_comments.scss @@ -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; + } +} diff --git a/_src/_includes/scripts.html b/_src/_includes/scripts.html index 90e1948..b633419 100644 --- a/_src/_includes/scripts.html +++ b/_src/_includes/scripts.html @@ -66,3 +66,33 @@ svg4everybody.js {% else %} {% endif%} + + + +{% if page.comments %} + + +{% endif %} diff --git a/_src/_layouts/page.html b/_src/_layouts/page.html index e98bc1a..6d702ec 100644 --- a/_src/_layouts/page.html +++ b/_src/_layouts/page.html @@ -24,3 +24,12 @@ layout: base {% endif %} + +{% if page.comments %} + +{% endif %} diff --git a/_src/whitepaper/index.md b/_src/whitepaper/index.md index f0da941..58595d2 100644 --- a/_src/whitepaper/index.md +++ b/_src/whitepaper/index.md @@ -2,6 +2,8 @@ layout: page title: 'Bigchain: A Scalable Blockchain Database' + +comments: true --- Trent McConaghy, Rodolphe Marques, Andreas Müller