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.
A simplistic ghost theme based on Casper, but with a fixed sidebar
License: MIT License
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.
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. :)
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>
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. =)
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> © 2013 • All rights reserved.</section>
---
> <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> © {{date format="YYYY"}} • 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> © 2013 • All rights reserved.</section>
---
> <section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> © {{date format="YYYY"}} • All rights reserved.</section>
I also noticed that Casper does this in default.hbs, which may be a cleaner approach.
this_is a_test
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}}
It looks like your demo is gone/down. Is it just down or is there one available somewhere else?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.