Skip to content

Commit 58815c2

Browse files
committed
Upgrade to Ghost v4.0
Delete code about @member
1 parent 3662d59 commit 58815c2

File tree

7 files changed

+9
-27
lines changed

7 files changed

+9
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Open `default.hbs` file from your theme folder.
363363
Add `data-theme="light"` in the html tag at line number 2. So that the line will become like below.
364364

365365
```
366-
<html lang="{{@site.lang}}" data-theme="light">
366+
<html lang="{{@site.locale}}" data-theme="light">
367367
```
368368

369369
## Theme Translation

default.hbs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="{{@site.lang}}">
2+
<html lang="{{@site.locale}}">
33
<head>
44
{{! Document Settings }}
55
<meta charset="UTF-8">
@@ -48,9 +48,6 @@
4848
</main>
4949
{{! insert footer partial}}
5050
{{> footer}}
51-
{{#if @labs.members}}
52-
{{> members/notifications}}
53-
{{/if}}
5451
{{! scripts}}
5552
<script async="async">
5653
var searchApi = "{{@site.url}}/ghost/api/v3/content/posts/?key={{>api-key}}&limit=all&fields=id,title,excerpt,custom_excerpt,url,published_at&formats=plaintext";

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "Minimal personal blog theme",
44
"demo": "http://advant.gbjsolution.com",
55
"homepage": "https://halfrost.com",
6-
"version": "3.0.18",
6+
"version": "4.0.1",
77
"engines": {
8-
"ghost": ">=3.0.0",
9-
"ghost-api": "v3"
8+
"ghost": ">=4.0.0",
9+
"ghost-api": "v4"
1010
},
1111
"screenshots": {
1212
"desktop": "assets/screenshot-desktop.jpg",

partials/footer.hbs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
</div>
1616
<div class="container-fluid" style="width: 80%">
1717
<div class="row">
18-
{{!-- <div class="col">
19-
{{#if @labs.members}}
20-
{{^if @member}}
21-
{{#is "index, post, page, tag, author"}}
22-
{{> subscription}}
23-
{{/is}}
24-
{{/if}}
25-
{{/if}}
26-
{{> social-links}}
27-
<div class="copyright">
28-
&copy; {{date format="YYYY"}} <a href="{{@site.url}}">{{@site.title}}</a> - {{{t "Published with {ghostLink}" ghostLink="<a href=\"https://ghost.org/\">Ghost</a>"}}}
29-
</div>
30-
</div> --}}
3118
{{> widgets/footer-tags}}
3219
{{> widgets/footer-about}}
3320
{{> widgets/footer-newsletter}}

partials/loop.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#foreach posts visibility="all"}}
1+
{{#foreach posts}}
22
<article class="{{post_class}} fade-in-up">
33
<div class="container-fluid">
44
<div class="row">

partials/navigation.hbs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{{#foreach navigation}}
22
<li class="{{slug}} nav-item{{#if current}} nav-item-current{{/if}}"><a href="{{url absolute="true"}}">{{label}}</a></li>
33
{{/foreach}}
4-
{{#if @labs.members}}
5-
{{#if @member}}
4+
{{!-- {{#if @member}}
65
<li class="nav-item {{link_class for="/account/" activeClass="nav-item-current"}}">{{#link href="/account/"}}{{t "Account"}}{{/link}}</li>
76
<li class="nav-item">{{#link href="#signout" data-members-signout=""}}{{t "Sign out"}}{{/link}}</li>
87
{{else}}
98
<li class="nav-item {{link_class for="/signin/" activeClass="nav-item-current"}}">{{#link href="/signin/"}}{{t "Sign in"}}{{/link}}</li>
109
<li class="nav-item {{link_class for="/signup/" activeClass="nav-item-current"}}">{{#link href="/signup/"}}{{t "Sign up"}}{{/link}}</li>
11-
{{/if}}
12-
{{/if}}
10+
{{/if}} --}}

0 commit comments

Comments
 (0)