Skip to content

Commit

Permalink
Add Support for Ghost 2.0 (#64)
Browse files Browse the repository at this point in the history
* Added support for multiple authors

* Added recommended ghost-theme keyword

* Add support for image size options

* Upgrade Vapor to version 1.6
  • Loading branch information
jamesejr authored and sethlilly committed Aug 22, 2018
1 parent 27f35de commit 974edec
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2014 Seth Lilly - Released under The MIT License.
Copyright (c) 2013-2018 Seth Lilly - Released under The MIT License.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
4 changes: 4 additions & 0 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ section.post-content img {
margin: 0 auto;
max-width: 100%;
}
section.post-content .kg-width-wide img {
}
section.post-content .kg-width-full img {
}
section.preview.archive h2 {
text-align: left;
}
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"name": "vapor",
"description": "A minimal, responsive theme for Ghost.",
"version": "1.5.0",
"version": "1.6.0",
"engines": {
"ghost": ">=1.0.0"
"ghost": ">=2.0.0"
},
"license": "MIT",
"author": {
"email": "[email protected]"
},
"keywords": [
"ghost",
"theme",
"ghost-theme"
],
"config": {
"posts_per_page": 10
}
Expand Down
8 changes: 4 additions & 4 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@

<footer class="post-footer">

{{#if author}}
{{#if primary_author}}
<section class="author">
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
<div class="authorimage" style="background: url({{primary_author.profile_image}})"></div>
<p class="attr">Author</p>
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
<p class="bio">{{author.bio}}</p>
<h4><a href="{{primary_author.website}}">{{primary_author.name}}</a></h4>
<p class="bio">{{primary_author.bio}}</p>
</section>
{{/if}}

Expand Down
8 changes: 4 additions & 4 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@

<footer class="post-footer">

{{#if author}}
{{#if primary_author}}
<section class="author">
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
<div class="authorimage" style="background: url({{primary_author.profile_image}})"></div>
<p class="attr">Author</p>
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
<p class="bio">{{author.bio}}</p>
<h4><a href="{{primary_author.website}}">{{primary_author.name}}</a></h4>
<p class="bio">{{primary_author.bio}}</p>
</section>
{{/if}}

Expand Down

0 comments on commit 974edec

Please sign in to comment.