mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-11-14 01:06:32 +00:00
b2322157d5
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
30 lines
1.3 KiB
Handlebars
30 lines
1.3 KiB
Handlebars
<nav class="site-nav">
|
|
<div class="site-nav-left">
|
|
{{^is "home"}}
|
|
{{#if @site.logo}}
|
|
<a class="site-nav-logo" href="{{@site.url}}"><img src="{{@site.logo}}" alt="{{@site.title}}" /></a>
|
|
{{else}}
|
|
<a class="site-nav-logo" href="{{@site.url}}">{{@site.title}}</a>
|
|
{{/if}}
|
|
{{/is}}
|
|
{{#if @site.navigation}}
|
|
{{navigation}}
|
|
{{/if}}
|
|
</div>
|
|
<div class="site-nav-right">
|
|
<div class="social-links">
|
|
{{#if @site.facebook}}
|
|
<a class="social-link social-link-fb" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
|
{{/if}}
|
|
{{#if @site.twitter}}
|
|
<a class="social-link social-link-tw" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
|
{{/if}}
|
|
</div>
|
|
{{#if @labs.subscribers}}
|
|
<a class="subscribe-button" href="#subscribe">Subscribe</a>
|
|
{{else}}
|
|
<a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
|
|
{{/if}}
|
|
</div>
|
|
</nav>
|