Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Chopstick
#### FREE Ghost Blog Theme

![Ghost version](https://img.shields.io/badge/Ghost-0.7.x-brightgreen.svg?style=flat-square)
![Ghost version](https://img.shields.io/badge/Ghost-1.x.x-brightgreen.svg?style=flat-square)

We know that the perfect theme for your blog determines the future of your site. Chopstick, a blog style Ghost theme, is designed with only one goal: to give a good first impression to your user.

Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ h6 a:hover {
right: 0;
}

.page footer {
.page-template footer {
background: transparent;
padding-left: 0;
padding-right: 0;
Expand Down
10 changes: 5 additions & 5 deletions author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

{{! author profile }}
{{#author}}
<section id="author-profile" class="author-profile" {{#if cover}} style="background-image: url({{cover}});" {{/if}}>
<section id="author-profile" class="author-profile" {{#if cover_image}} style="background-image: url({{cover_image}});" {{/if}}>
<div class="container">
<div class="row">
<div class="light-overlay"></div>
<div class="col-xs-12 col-md-2 author-img">
{{#if image}}
<img src="{{image}}" class="author-img-avatar" alt="{{name}}" title="{{name}}" />
{{#if profile_image}}
<img src="{{profile_image}}" class="author-img-avatar" alt="{{name}}" title="{{name}}" />
{{else}}
<img src="{{asset "images/no-image.jpg"}}" class="author-img-avatar" />
{{/if}}
Expand Down Expand Up @@ -50,8 +50,8 @@
<article class="col-sm-12 post-other-list">
<div class="row">
<div class="col-sm-4 post-image">
{{#if image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{image}}" /></a>
{{#if feature_image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{img_url feature_image}}" /></a>
{{else}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down
1 change: 0 additions & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

{{! Page Meta }}
<title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}" />

{{! favicons }}
<link rel="apple-touch-icon" href="{{asset "images/apple-touch-icon.png"}}" />
Expand Down
8 changes: 4 additions & 4 deletions home.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{{#foreach posts columns=3}}
{{#if @rowStart}}
<article class="col-md-12 post-one">
{{#if image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{image}}" /></a>
{{#if feature_image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{img_url feature_image}}" /></a>
{{else}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down Expand Up @@ -43,8 +43,8 @@
</article>
{{else}}
<article class="col-md-6 post-other">
{{#if image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{image}}" /></a>
{{#if feature_image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{img_url feature_image}}" /></a>
{{else}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{
"name" : "Chopstick",
"version": "1.1.0"
"name" : "chopstick",
"version": "1.2.0",
"engines": {
"ghost": ">=1.2.0"
},
"author": {
"name": "Kagai Macharia",
"email": "hey@chopstick.io",
"url": "http://kagai.me "
},
"config": {
"posts_per_page": 25
}
}
4 changes: 2 additions & 2 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<header class="post-header">
<h2>{{{title}}}</h2>

{{#if image}}
<img src="{{image}}" alt="{{{title}}}" title="{{{title}}}" />
{{#if feature_image}}
<img src="{{img_url feature_image}}" alt="{{{title}}}" title="{{{title}}}" />
{{/if}}
</header>

Expand Down
8 changes: 4 additions & 4 deletions partials/loop.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{{#foreach posts}}
{{#if @first}}
<article class="col-sm-12 post-one">
{{#if image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{image}}" /></a>
{{#if feature_image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{img_url feature_image}}" /></a>
{{else}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down Expand Up @@ -44,8 +44,8 @@
<article class="col-sm-12 post-other-list">
<div class="row">
<div class="col-sm-4 post-image">
{{#if image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{image}}" /></a>
{{#if feature_image}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{img_url feature_image}}" /></a>
{{else}}
<a href="{{url}}" alt="{{{title}}}" title="{{{title}}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down
6 changes: 3 additions & 3 deletions partials/post-author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{{#author}}
<section class="cp-author">
<div class="row">
<div class="col-md-12 author-img" {{#if cover}} style="background-image: url({{cover}});" {{/if}}>
{{#if image}}
<a href="{{url}}" alt="{{name}}" title="{{name}}"><img class="author-img-avatar" src="{{image}}" alt="{{name}}" title="{{name}}" /></a>
<div class="col-md-12 author-img" {{#if cover_image}} style="background-image: url({{cover_image}});" {{/if}}>
{{#if profile_image}}
<a href="{{url}}" alt="{{name}}" title="{{name}}"><img class="author-img-avatar" src="{{img_url profile_image}}" alt="{{name}}" title="{{name}}" /></a>
{{else}}
<a href="{{url}}" alt="{{name}}" title="{{name}}"><img src="{{asset "images/no-image.jpg"}}" /></a>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion partials/share.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- linkedin -->
<a href="http://www.linkedin.com/shareArticle?mini=true&url={{url absolute="true"}}" onclick="window.open(this.href, 'linkedin-share', 'width=490,height=530');return false;" title="Linkedin"><i class="fa fa-linkedin"></i></a>
<!-- pinterest -->
<a data-pin-do="skipLink" href="https://pinterest.com/pin/create/button/?url={{url absolute="true"}}&amp;media={{image}}&amp;description={{{title}}}"
<a data-pin-do="skipLink" href="https://pinterest.com/pin/create/button/?url={{url absolute="true"}}&amp;media={{img_url feature_image}}&amp;description={{{title}}}"
onclick="window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=455,width=600'); return false;">
<i class="fa fa-pinterest-p"></i>
</a>
Expand Down
4 changes: 2 additions & 2 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<a href="{{url}}#disqus_thread">0 Comments</a>
</span>
</div>
{{#if image}}
<img class="featured-image" src="{{image}}" alt="{{{title}}}" title="{{{title}}}" />
{{#if feature_image}}
<img class="featured-image" src="{{img_url feature_image}}" alt="{{{title}}}" title="{{{title}}}" />
{{else}}
<img class="featured-image" src="{{asset "images/no-image.jpg"}}" />
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion tag.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{!< default}}
{{! tag page header }}
<section id="tag-header" class="tag-header {{#if tag.image}}" style="background-image: url({{tag.image}}) {{else}}" style="background-image: url({{@blog.cover}}) {{/if}}">
<section id="tag-header" class="tag-header {{#if tag.feature_image}}" style="background-image: url({{tag.feature_image}}) {{else}}" style="background-image: url({{@blog.cover_image}}) {{/if}}">
<div class="container">
<div class="row">
<div class="light-overlay"></div>
Expand Down