Skip to content

Commit 974edec

Browse files
jamesejrsethlilly
authored andcommitted
Add Support for Ghost 2.0 (#64)
* Added support for multiple authors * Added recommended ghost-theme keyword * Add support for image size options * Upgrade Vapor to version 1.6
1 parent 27f35de commit 974edec

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2014 Seth Lilly - Released under The MIT License.
1+
Copyright (c) 2013-2018 Seth Lilly - Released under The MIT License.
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

assets/css/screen.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ section.post-content img {
254254
margin: 0 auto;
255255
max-width: 100%;
256256
}
257+
section.post-content .kg-width-wide img {
258+
}
259+
section.post-content .kg-width-full img {
260+
}
257261
section.preview.archive h2 {
258262
text-align: left;
259263
}

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
{
22
"name": "vapor",
33
"description": "A minimal, responsive theme for Ghost.",
4-
"version": "1.5.0",
4+
"version": "1.6.0",
55
"engines": {
6-
"ghost": ">=1.0.0"
6+
"ghost": ">=2.0.0"
77
},
88
"license": "MIT",
99
"author": {
1010
"email": "[email protected]"
1111
},
12+
"keywords": [
13+
"ghost",
14+
"theme",
15+
"ghost-theme"
16+
],
1217
"config": {
1318
"posts_per_page": 10
1419
}

page.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434

3535
<footer class="post-footer">
3636

37-
{{#if author}}
37+
{{#if primary_author}}
3838
<section class="author">
39-
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
39+
<div class="authorimage" style="background: url({{primary_author.profile_image}})"></div>
4040
<p class="attr">Author</p>
41-
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
42-
<p class="bio">{{author.bio}}</p>
41+
<h4><a href="{{primary_author.website}}">{{primary_author.name}}</a></h4>
42+
<p class="bio">{{primary_author.bio}}</p>
4343
</section>
4444
{{/if}}
4545

post.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434

3535
<footer class="post-footer">
3636

37-
{{#if author}}
37+
{{#if primary_author}}
3838
<section class="author">
39-
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
39+
<div class="authorimage" style="background: url({{primary_author.profile_image}})"></div>
4040
<p class="attr">Author</p>
41-
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
42-
<p class="bio">{{author.bio}}</p>
41+
<h4><a href="{{primary_author.website}}">{{primary_author.name}}</a></h4>
42+
<p class="bio">{{primary_author.bio}}</p>
4343
</section>
4444
{{/if}}
4545

0 commit comments

Comments
 (0)