Permalink
Browse files

Fix issues for Ghost 1.0 compatibility

  • Loading branch information...
roryg committed Jul 22, 2017
1 parent 44906ac commit 49cedae45aab151a355d975d2d2921e2daf37ee1
Showing with 14 additions and 9 deletions.
  1. +2 −2 author.hbs
  2. +0 −1 default.hbs
  3. +8 −2 package.json
  4. +2 −2 page.hbs
  5. +2 −2 partials/post-content.hbs
View
@@ -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>
View
@@ -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" />
View
@@ -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
+ }
}
View
@@ -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}}
@@ -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}}}

0 comments on commit 49cedae

Please sign in to comment.