From 387eea440ac5ad0e2432c2d32837f105e1b45049 Mon Sep 17 00:00:00 2001 From: FranzHelm Date: Sun, 25 Mar 2018 23:26:05 +0200 Subject: [PATCH 1/3] ported to ghost 1.0 --- assets/css/style.css | 2 +- author.hbs | 10 +++++----- default.hbs | 1 - home.hbs | 8 ++++---- package.json | 15 +++++++++++++-- page.hbs | 4 ++-- partials/loop.hbs | 8 ++++---- partials/post-author.hbs | 6 +++--- partials/share.hbs | 2 +- post.hbs | 4 ++-- tag.hbs | 2 +- 11 files changed, 36 insertions(+), 26 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index d2aebf0..7c2a35b 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -668,7 +668,7 @@ h6 a:hover { right: 0; } -.page footer { +.page-template footer { background: transparent; padding-left: 0; padding-right: 0; diff --git a/author.hbs b/author.hbs index fd17678..3470634 100644 --- a/author.hbs +++ b/author.hbs @@ -2,13 +2,13 @@ {{! author profile }} {{#author}} -
+
- {{#if image}} - {{name}} + {{#if profile_image}} + {{name}} {{else}} {{/if}} @@ -50,8 +50,8 @@
- {{#if image}} - + {{#if feature_image}} + {{else}} {{/if}} diff --git a/default.hbs b/default.hbs index cc1c8d8..34fcfec 100644 --- a/default.hbs +++ b/default.hbs @@ -8,7 +8,6 @@ {{! Page Meta }} {{meta_title}} - {{! favicons }} diff --git a/home.hbs b/home.hbs index 6447a45..b4d90a8 100644 --- a/home.hbs +++ b/home.hbs @@ -8,8 +8,8 @@ {{#foreach posts columns=3}} {{#if @rowStart}}
- {{#if image}} - + {{#if feature_image}} + {{else}} {{/if}} @@ -43,8 +43,8 @@
{{else}}
- {{#if image}} - + {{#if feature_image}} + {{else}} {{/if}} diff --git a/package.json b/package.json index 6cc45fd..6174825 100644 --- a/package.json +++ b/package.json @@ -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 + } } \ No newline at end of file diff --git a/page.hbs b/page.hbs index d7736bd..3547086 100644 --- a/page.hbs +++ b/page.hbs @@ -9,8 +9,8 @@

{{{title}}}

- {{#if image}} - {{{title}}} + {{#if feature_image}} + {{{title}}} {{/if}}
diff --git a/partials/loop.hbs b/partials/loop.hbs index db8e3ea..48a5c5f 100644 --- a/partials/loop.hbs +++ b/partials/loop.hbs @@ -7,8 +7,8 @@ {{#foreach posts}} {{#if @first}}
- {{#if image}} - + {{#if feature_image}} + {{else}} {{/if}} @@ -44,8 +44,8 @@
- {{#if image}} - + {{#if feature_image}} + {{else}} {{/if}} diff --git a/partials/post-author.hbs b/partials/post-author.hbs index 6e9cc92..7374f26 100644 --- a/partials/post-author.hbs +++ b/partials/post-author.hbs @@ -2,9 +2,9 @@ {{#author}}
-
- {{#if image}} - {{name}} +
+ {{#if feature_image}} + {{name}} {{else}} {{/if}} diff --git a/partials/share.hbs b/partials/share.hbs index 8f1c558..4613a7a 100644 --- a/partials/share.hbs +++ b/partials/share.hbs @@ -9,7 +9,7 @@ - diff --git a/post.hbs b/post.hbs index 0974a2c..027db57 100644 --- a/post.hbs +++ b/post.hbs @@ -23,8 +23,8 @@ 0 Comments
- {{#if image}} - {{{title}}} + {{#if feature_image}} + {{{title}}} {{else}} {{/if}} diff --git a/tag.hbs b/tag.hbs index 6cde7a5..deb58a9 100644 --- a/tag.hbs +++ b/tag.hbs @@ -1,6 +1,6 @@ {{!< default}} {{! tag page header }} -
+
From 343565f37566acfe0bbdc6db102b9327a54ce6b6 Mon Sep 17 00:00:00 2001 From: FranzHelm Date: Sun, 25 Mar 2018 23:33:25 +0200 Subject: [PATCH 2/3] ported to ghost 1.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b69d38e..ea00be2 100644 --- a/README.md +++ b/README.md @@ -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. From f2871f9ba12d9110bf289f7af61f206372dd9bcc Mon Sep 17 00:00:00 2001 From: FranzHelm Date: Mon, 26 Mar 2018 14:47:20 +0200 Subject: [PATCH 3/3] fix: missing images --- author.hbs | 4 ++-- page.hbs | 2 +- partials/loop.hbs | 4 ++-- partials/post-author.hbs | 4 ++-- partials/share.hbs | 2 +- post.hbs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/author.hbs b/author.hbs index 3470634..99e8542 100644 --- a/author.hbs +++ b/author.hbs @@ -8,7 +8,7 @@
{{#if profile_image}} - {{name}} + {{name}} {{else}} {{/if}} @@ -51,7 +51,7 @@
{{#if feature_image}} - + {{else}} {{/if}} diff --git a/page.hbs b/page.hbs index 3547086..c224d78 100644 --- a/page.hbs +++ b/page.hbs @@ -10,7 +10,7 @@

{{{title}}}

{{#if feature_image}} - {{{title}}} + {{{title}}} {{/if}} diff --git a/partials/loop.hbs b/partials/loop.hbs index 48a5c5f..aa97b4f 100644 --- a/partials/loop.hbs +++ b/partials/loop.hbs @@ -8,7 +8,7 @@ {{#if @first}}
{{#if feature_image}} - + {{else}} {{/if}} @@ -45,7 +45,7 @@
{{#if feature_image}} - + {{else}} {{/if}} diff --git a/partials/post-author.hbs b/partials/post-author.hbs index 7374f26..f092ad1 100644 --- a/partials/post-author.hbs +++ b/partials/post-author.hbs @@ -3,8 +3,8 @@
- {{#if feature_image}} - {{name}} + {{#if profile_image}} + {{name}} {{else}} {{/if}} diff --git a/partials/share.hbs b/partials/share.hbs index 4613a7a..5c55c7d 100644 --- a/partials/share.hbs +++ b/partials/share.hbs @@ -9,7 +9,7 @@ - diff --git a/post.hbs b/post.hbs index 027db57..c134ec9 100644 --- a/post.hbs +++ b/post.hbs @@ -24,7 +24,7 @@
{{#if feature_image}} - {{{title}}} + {{{title}}} {{else}} {{/if}}