Migrated from @blog -> @site

no issue

- This rename is due to new {{@site}} alias introduced in Ghost (dd1cf5ffc7) as {{@blog}} variable is deprecated now, and will be removed in v3
This commit is contained in:
Nazar Gargol 2019-01-09 12:14:36 +00:00
parent 7a09d5ad9f
commit 20ac61fb15
4 changed files with 14 additions and 14 deletions

View File

@ -28,21 +28,21 @@
{{navigation}} {{navigation}}
</nav> </nav>
<div class="site-head-center"> <div class="site-head-center">
{{#if @blog.logo}} {{#if @site.logo}}
<a class="site-head-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a> <a class="site-head-logo" href="{{@site.url}}"><img src="{{@site.logo}}" alt="{{@site.title}}" /></a>
{{else}} {{else}}
<a class="site-head-logo" href="{{@blog.url}}">{{@blog.title}}</a> <a class="site-head-logo" href="{{@site.url}}">{{@site.title}}</a>
{{/if}} {{/if}}
</div> </div>
<div class="site-head-right"> <div class="site-head-right">
<div class="social-links"> <div class="social-links">
{{#if @blog.facebook}} {{#if @site.facebook}}
<a href="{{facebook_url @blog.facebook}}" title="Facebook" target="_blank" rel="noopener">Facebook</a> <a href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">Facebook</a>
{{/if}} {{/if}}
{{#if @blog.twitter}} {{#if @site.twitter}}
<a href="{{twitter_url @blog.twitter}}" title="Twitter" target="_blank" rel="noopener">Twitter</a> <a href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">Twitter</a>
{{/if}} {{/if}}
<a href="https://feedly.com/i/subscription/feed/{{@blog.url}}/rss/" title="RSS" target="_blank" rel="noopener">RSS</a> <a href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">RSS</a>
</div> </div>
</div> </div>
</div> </div>
@ -57,7 +57,7 @@
{{!-- The footer at the very bottom of the screen --}} {{!-- The footer at the very bottom of the screen --}}
<footer class="site-foot"> <footer class="site-foot">
&copy; {{date format="YYYY"}} <a href="{{@blog.url}}">{{@blog.title}}</a> &mdash; Published with <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a> &copy; {{date format="YYYY"}} <a href="{{@site.url}}">{{@site.title}}</a> &mdash; Published with <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
</footer> </footer>
</div> </div>

View File

@ -3,7 +3,7 @@
<header class="page-head error-head"> <header class="page-head error-head">
<h1 class="page-head-title">{{code}}</h1> <h1 class="page-head-title">{{code}}</h1>
<p class="page-head-description">{{message}}</p> <p class="page-head-description">{{message}}</p>
<a class="error-link" href="{{@blog.url}}">Go to the front page →</a> <a class="error-link" href="{{@site.url}}">Go to the front page →</a>
</header> </header>
{{#if errorDetails}} {{#if errorDetails}}
@ -24,4 +24,4 @@
</ul> </ul>
</section> </section>
</div> </div>
{{/if}} {{/if}}

View File

@ -3,9 +3,9 @@
into the {body} of the default.hbs template --}} into the {body} of the default.hbs template --}}
{{#is "home"}} {{#is "home"}}
{{#if @blog.description}} {{#if @site.description}}
<header class="page-head"> <header class="page-head">
<h2 class="page-head-title">{{@blog.description}}</h2> <h2 class="page-head-title">{{@site.description}}</h2>
</header> </header>
{{/if}} {{/if}}
{{/is}} {{/is}}

View File

@ -24,7 +24,7 @@
{{!-- Email subscribe form at the bottom of the page --}} {{!-- Email subscribe form at the bottom of the page --}}
{{#if @labs.subscribers}} {{#if @labs.subscribers}}
<section class="subscribe-form"> <section class="subscribe-form">
<h3 class="subscribe-form-title">Subscribe to {{@blog.title}}</h3> <h3 class="subscribe-form-title">Subscribe to {{@site.title}}</h3>
<p>Get the latest posts delivered right to your inbox</p> <p>Get the latest posts delivered right to your inbox</p>
{{subscribe_form placeholder="youremail@example.com"}} {{subscribe_form placeholder="youremail@example.com"}}
</section> </section>