Coder Social home page Coder Social logo

ghost-aside's Introduction

Aside

A theme for Ghost based on the default theme, Casper.

##Important Notes

Make sure you change both the Google Analytics and Disqus keys before using this on your site.

ghost-aside's People

Contributors

luca77 avatar xdumaine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ghost-aside's Issues

Disqus comments overlay social icons

By default, when enabling Disqus commenting, the Login section is obscured by the Twitter/Facebook/G+ icons. Easily fixed in a hacky way by throwing in some hard line breaks, but figured a CSS solution (which I do not speak very well, unfortunately :) would be cleaner and preferable. (Discovered while working on Isso comment system integration, which I'll discuss separately off-issue when I have something cleaner working. :)

Use helpers to correctly reference subURIs

For example, the following changes to default.hbs will allow css and javascript assets to be loaded properly even when using subURIs:

$ diff ghost-aside-master/default.hbs ghost-aside/default.hbs
17c17
<     <link rel="stylesheet" type="text/css" href="/assets/css/screen.css" />

---
>     <link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
55c55
<     <script type="text/javascript" src="/assets/js/index.js"></script>

---
>     <script type="text/javascript" src="{{asset "js/index.js"}}"></script>

Thoughts on featured posts

There doesn't (yet) appear to be any particular support for featured posts...but given the elegance and simplicity of the theme, I can't think of a good way to "feature" them without taking away from the clean look.

Perhaps some sort of highlighting of the post title, potentially reordering the post presentation list (can that even be affected by a theme in Ghost?) to bubble them up to the top, even if that means the posts are technically 'out of order'?

Please forgive my ignorance of Ghost and Handlebars, just trying to think out loud of a way to elegantly present featured posts without ruining the visuals or confusing the reader. Thoughts very much welcomed. =)

Copyright year is hard-coded to 2013

It should probably follow the Casper model and make the year dynamic:

$ diff ghost-aside-master/index.hbs ghost-aside/index.hbs
38c38
<              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; 2013 &bull; All rights reserved.</section>

---
>              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
$ diff ghost-aside-master/tag.hbs ghost-aside/tag.hbs
34c34
<              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; 2013 &bull; All rights reserved.</section>

---
>              <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>

I also noticed that Casper does this in default.hbs, which may be a cleaner approach.

test

this_is a_test

Please use built-in Ghost page images where available

The following changes will present the post image in the sidebar if available, otherwise the cover image if available (essentially moving the default header into index and adding a second double-conditional header into post):

$ diff ghost-aside-master/default.hbs ghost-aside/default.hbs
35,46d34
<       <header id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<               <div class="vertical">
<                       <div id="site-head-content" class="inner">
<
<                               {{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<                               <h1 class="blog-title">{{@blog.title}}</h1>
<                               <h2 class="blog-description">{{@blog.description}}</h2>
<                               {{navigation}}
<                       </div>
<               </div>
<       </header>
<
$ diff ghost-aside-master/index.hbs ghost-aside/index.hbs
6a7,17
> <header id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
>     <div class="vertical">
>         <div id="site-head-content" class="inner">
>
>             {{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
>             <h1 class="blog-title">{{@blog.title}}</h1>
>             <h2 class="blog-description">{{@blog.description}}</h2>
>             {{navigation}}
>         </div>
>     </div>
> </header>
]$ diff ghost-aside-master/post.hbs ghost-aside/post.hbs
5a6,20
> {{! Everything inside the #post tags pulls data from the post }}
> {{#post}}
>
> <header id="site-head" {{#if image}}style="background-image: url({{image}})"{{else}}{{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}{{/if}}>
>     <div class="vertical">
>         <div id="site-head-content" class="inner">
>
>             {{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
>             <h1 class="blog-title">{{@blog.title}}</h1>
>             <h2 class="blog-description">{{@blog.description}}</h2>
>             {{navigation}}
>         </div>
>     </div>
> </header>
>
12,14d26
<
<         {{! Everything inside the #post tags pulls data from the post }}
<         {{#post}}

Demo Still Alive?

It looks like your demo is gone/down. Is it just down or is there one available somewhere else?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.