diff options
author | Rory Gibson <rg.rorygibson@gmail.com> | 2017-07-23 00:05:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 00:05:45 +0300 |
commit | 817e6ad1bc14c8b988dba8ed7791f71c54388cbf (patch) | |
tree | d0f4555451bb8ead62ac539cd487d383017e5c7c | |
parent | 44906ac414fbda5d74b5d95530d7b71ab2812b24 (diff) | |
parent | 49cedae45aab151a355d975d2d2921e2daf37ee1 (diff) |
Merge pull request #100 from roryg/ghost-1.0
Fix issues for Ghost 1.0 compatibility
-rw-r--r-- | author.hbs | 4 | ||||
-rw-r--r-- | default.hbs | 1 | ||||
-rw-r--r-- | package.json | 10 | ||||
-rw-r--r-- | page.hbs | 4 | ||||
-rw-r--r-- | partials/post-content.hbs | 4 |
5 files changed, 14 insertions, 9 deletions
@@ -4,8 +4,8 @@ <section class="author-profile"> {{#author}} <div class="author-heading"> - {{#if image}} - <img class="author-avatar" src="{{image}}" width="50" height="50" alt="{{name}}"> + {{#if profile_image}} + <img class="author-avatar" src="{{img_url profile_image}}" width="50" height="50" alt="{{name}}"> {{/if}} <h1 class="author-name">{{name}}</h1> diff --git a/default.hbs b/default.hbs index e6fa2d3..580c687 100644 --- a/default.hbs +++ b/default.hbs @@ -7,7 +7,6 @@ {{! Page Meta }} <title>{{meta_title}}</title> - <meta name="description" content="{{meta_description}}" /> <meta name="HandheldFriendly" content="True" /> <meta name="MobileOptimized" content="320" /> diff --git a/package.json b/package.json index 1189ef3..5269755 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,10 @@ { - "name": "Ghostwriter", - "version": "1.9.3" + "name": "ghostwriter", + "version": "1.9.3", + "author": { + "email": "rg.rorygibson+ghost@gmail.com" + }, + "config": { + "posts_per_page": 5 + } }
\ No newline at end of file @@ -10,8 +10,8 @@ </header> <div class="post-content clearfix"> - {{#if image}} - <img class="post-featured-image" src="{{image}}"> + {{#if feature_image}} + <img class="post-featured-image" src="{{img_url feature_image}}"> {{/if}} {{! No indention to prevent handlebars indenting <pre> tag content}} diff --git a/partials/post-content.hbs b/partials/post-content.hbs index 3f1c6ef..66cdc2e 100644 --- a/partials/post-content.hbs +++ b/partials/post-content.hbs @@ -6,8 +6,8 @@ </header> <div class="post-content clearfix"> - {{#if image}} - <img class="post-featured-image" src="{{image}}"> + {{#if feature_image}} + <img class="post-featured-image" src="{{img_url feature_image}}"> {{/if}} {{{content}}} |