diff --git a/README.md b/README.md index 9f654df..209e603 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# Readium 2.0 - +# Readium 2.0.0 **The Medium-like theme for [Ghost](https://github.com/TryGhost)**. Reduced to the core design of Medium (without the cluttered stuff, like the sidebar) to bring you a similar user experience while giving you the freedom to host it on your own servers and on your own terms. @@ -35,8 +34,11 @@ If you give your images an alt text, it gets added automatically as figcaption b - Free & Open Source Font usage - Theoretically ready for multiple users (here is how to [hack Ghost for Mulit-User](http://lifewiththemacks.com/multi-user-support/)) +### Comments +To enable the disqus support open the file partials/comment-list.hbs and follow the instruction. + #### If your Ghost blog is self hosted: -1. Copy the contents of the .zip file into /content/themes/. +1. Copy the contents of the .zip file into /content/themes/. 2. You need to restart your Ghost instance. After that you can switch themes inside your Ghost admin (http://your.domain.com/ghost/settings/general/). Scroll down and choose "Readium" from the theme dropdown. 3. Now you can customize your logo, langing page image (if you choose to have one), as well as user images and texts to fit the theme. 4. Have fun. @@ -51,4 +53,4 @@ If you give your images an alt text, it gets added automatically as figcaption b - Highlight JS by Ivan Sagalaev - @mr_boolean, @riplexus & @unverbraucht for helping with JS - The awesome guys that make Ghost -- The really rad guys that design Medium +- The really rad guys that design Medium \ No newline at end of file diff --git a/assets/css/main.css b/assets/css/main.css index 23c0ac4..eb277d3 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -647,3 +647,7 @@ body { border-radius: 999em; line-height: 44px; padding: 0 18px; } +#disqus_thread { + margin-top: 50px; } +.post-tag-articleimage { + display: none; } \ No newline at end of file diff --git a/assets/css/main.sass b/assets/css/main.sass index 209a2d9..c23f01b 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,7 @@ body line-height: 44px padding: 0 18px - - - - - - - +#disqus_thread + margin-top: 50px +.post-tag-articleimage + display: none \ No newline at end of file diff --git a/index.hbs b/index.hbs index 35d226a..65035fc 100755 --- a/index.hbs +++ b/index.hbs @@ -30,31 +30,31 @@ {{! The main content area on the homepage }}
- + - + {{/if}} {{/foreach}} - - + +
Regular
- +
{{#foreach posts}} {{#if featured}} @@ -88,7 +88,7 @@

{{excerpt characters="130"}}…

- +
{{/if}} 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" } diff --git a/page.hbs b/page.hbs index 1560716..6611e9a 100755 --- a/page.hbs +++ b/page.hbs @@ -23,8 +23,7 @@
Blog Logo
on - - {{tags prefix=", tagged on " separator=", "}} + , tagged on {{#foreach tags}}{{/foreach}}
@@ -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 @@
Blog Logo
on - - {{tags prefix=", tagged on " separator=", "}} + , tagged on {{#foreach tags}}{{/foreach}}
diff --git a/partials/comment-list.hbs b/partials/comment-list.hbs new file mode 100644 index 0000000..2b93498 --- /dev/null +++ b/partials/comment-list.hbs @@ -0,0 +1,18 @@ +{{!-- + 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". +--}} +{{!-- +
+ + +--}} \ No newline at end of file diff --git a/post.hbs b/post.hbs index 219bbdf..02b9e5e 100755 --- a/post.hbs +++ b/post.hbs @@ -6,61 +6,60 @@
- + {{! 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}} - +



- + {{/has}} - +
@@ -110,9 +108,7 @@ {{content}}
- - + {{> comment-list}}
@@ -149,7 +144,7 @@
- +