From 9c9f90bf316d8ef2f8102ca6a5228b64bbccd1b8 Mon Sep 17 00:00:00 2001 From: MrBoolean Date: Wed, 20 Aug 2014 21:34:46 +0200 Subject: [PATCH 1/4] Remove useless spaces --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1a99625..b950116 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name" : "Readium", - "version" : "2.0.0", - "description" : "Just a medium-like blogging platform.", - "author" : "Sven Read", - "homepage" : "http://www.svenread.com/readium" + "name": "Readium", + "version": "2.0.0", + "description": "Just a medium-like blogging platform.", + "author": "Sven Read", + "homepage": "http://www.svenread.com/readium" } From ccc40b3cf273d48fdff2c94bb271a5018bcbf7a0 Mon Sep 17 00:00:00 2001 From: MrBoolean Date: Wed, 20 Aug 2014 22:00:42 +0200 Subject: [PATCH 2/4] #48 Add disqus support --- assets/css/main.css | 2 ++ assets/css/main.sass | 13 ++++------- partials/comment-list.hbs | 17 ++++++++++++++ post.hbs | 49 ++++++++++++++++++--------------------- 4 files changed, 46 insertions(+), 35 deletions(-) create mode 100644 partials/comment-list.hbs diff --git a/assets/css/main.css b/assets/css/main.css index 23c0ac4..fe74e6b 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -647,3 +647,5 @@ body { border-radius: 999em; line-height: 44px; padding: 0 18px; } +#disqus_thread { + margin-top: 50px; } \ No newline at end of file diff --git a/assets/css/main.sass b/assets/css/main.sass index 209a2d9..f40c807 100644 --- a/assets/css/main.sass +++ b/assets/css/main.sass @@ -59,7 +59,7 @@ body -webkit-font-feature-settings: "liga", "dlig" -o-font-feature-settings: "liga", "dlig" font-feature-settings: "liga", "dlig" - + .logo-readium position: fixed left: 10px @@ -570,7 +570,7 @@ body display: none &:hover color: #333 - + .bottom-closer width: 100% position: relative @@ -634,10 +634,5 @@ body line-height: 44px padding: 0 18px - - - - - - - +#disqus_thread + margin-top: 50px \ No newline at end of file diff --git a/partials/comment-list.hbs b/partials/comment-list.hbs new file mode 100644 index 0000000..84b98e6 --- /dev/null +++ b/partials/comment-list.hbs @@ -0,0 +1,17 @@ +{{!-- + By default the comment-list is disabled. To enable this feature just remove + line 6 and line 18. It is also required to update the + variable "disqus_shortname". +--}} + +
+ + diff --git a/post.hbs b/post.hbs index 219bbdf..13ff364 100755 --- a/post.hbs +++ b/post.hbs @@ -6,17 +6,17 @@
- + {{! Everything inside the #post tags pulls data from the post }} {{#post}} - + {{#has tag="articleImage"}} - +
- + Article Image - +
- + - + {{! Each post has the blog logo at the top, with a link back to the home page }} - + {{else}} - +
{{/if}} {{/foreach}} - - + +
Regular
- +
{{#foreach posts}} {{#if featured}} @@ -88,7 +88,7 @@

{{excerpt characters="130"}}…

- +
{{/if}} diff --git a/page.hbs b/page.hbs index 1560716..6611e9a 100755 --- a/page.hbs +++ b/page.hbs @@ -23,8 +23,7 @@
@@ -60,7 +59,7 @@ var height = $('.article-image').height(); $('.post-content').css('padding-top', height + 'px'); - + $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { @@ -91,8 +90,7 @@ diff --git a/post.hbs b/post.hbs index 13ff364..02b9e5e 100755 --- a/post.hbs +++ b/post.hbs @@ -23,8 +23,7 @@
@@ -91,8 +90,7 @@