Skip to content

Commit 334b28b

Browse files
pokonosethlilly
authored andcommitted
Ghost 1.0 Compatibility (#61)
* Applied GScan suggestions. * Package.json property "name" must be lowercase. * Applied GScan suggestions.
1 parent 46d6fa8 commit 334b28b

File tree

6 files changed

+21
-11
lines changed

6 files changed

+21
-11
lines changed

default.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
66

77
<title>{{meta_title}}</title>
8-
<meta name="description" content="{{meta_description}}" />
98

109
<meta name="HandheldFriendly" content="True" />
1110
<meta name="MobileOptimized" content="320" />
@@ -14,7 +13,7 @@
1413
<link rel="stylesheet" type="text/css" href="{{asset "css/normalize.css"}}" />
1514
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
1615

17-
{{#if pagination.next}}<link href="{{pageUrl pagination.next}}" rel="prefetch" />{{/if}}
16+
{{#if pagination.next}}<link href="{{page_url pagination.next}}" rel="prefetch" />{{/if}}
1817

1918
{{ghost_head}}
2019
</head>

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{
2-
"name": "Vapor",
3-
"version": "1.4.0"
2+
"name": "vapor",
3+
"description": "A minimal, responsive theme for Ghost.",
4+
"version": "1.5.0",
5+
"engines": {
6+
"ghost": ">=1.0.0"
7+
},
8+
"license": "MIT",
9+
"author": {
10+
"email": "[email protected]"
11+
},
12+
"config": {
13+
"posts_per_page": 10
14+
}
415
}

page.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
{{#if author}}
3838
<section class="author">
39-
<div class="authorimage" style="background: url({{author.image}})"></div>
39+
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
4040
<p class="attr">Author</p>
4141
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
4242
<p class="bio">{{author.bio}}</p>

partials/comments-disqus.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var disqus_shortname = 'YOUR_DISQUS_ID';
1010
var disqus_config = function() {
1111
//this.page.url = 'https://ivancarosati.com{{url}}'; // Replace PAGE_URL with your page's canonical URL variable
12-
this.page.identifier = '{{id}}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
12+
this.page.identifier = '{{comment_id}}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
1313
this.page.title = '{{title}}';
1414
};
1515
@@ -24,4 +24,4 @@
2424
</script>
2525
{{/post}}
2626
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments
27-
powered by Disqus.</a></noscript>
27+
powered by Disqus.</a></noscript>

partials/pagination.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<nav class="pagination" role="pagination">
22
{{#if prev}}
3-
<a class="newer-posts" href="{{pageUrl prev}}"><i class="fa fa-chevron-circle-left"></i> Newer</a>
3+
<a class="newer-posts" href="{{page_url prev}}"><i class="fa fa-chevron-circle-left"></i> Newer</a>
44
{{/if}}
55
<span class="page-number">Page {{page}} of {{pages}}</span>
66
{{#if next}}
7-
<a class="older-posts" href="{{pageUrl next}}">Older <i class="fa fa-chevron-circle-right"></i></a>
7+
<a class="older-posts" href="{{page_url next}}">Older <i class="fa fa-chevron-circle-right"></i></a>
88
{{/if}}
9-
</nav>
9+
</nav>

post.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
{{#if author}}
3838
<section class="author">
39-
<div class="authorimage" style="background: url({{author.image}})"></div>
39+
<div class="authorimage" style="background: url({{author.profile_image}})"></div>
4040
<p class="attr">Author</p>
4141
<h4><a href="{{author.website}}">{{author.name}}</a></h4>
4242
<p class="bio">{{author.bio}}</p>

0 commit comments

Comments
 (0)