b59893091c
refs https://github.com/TryGhost/Team/issues/332
refs 870a09b109
- The {{@labs.members}} always evaluates to "true" starting with Ghost 4.0 and will be "null" coercing to "false" starting Ghost 5.0
- Enabled all conditionals be default to pass the build in main Ghost repository. These changes should be reviewed - special attentio to the left out RSS feed which was surrounded with {{unless @labs.members}} condition
41 lines
1.8 KiB
Handlebars
41 lines
1.8 KiB
Handlebars
<nav class="site-nav">
|
|
<div class="site-nav-left-wrapper">
|
|
<div class="site-nav-left">
|
|
{{#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}}
|
|
<div class="site-nav-content">
|
|
{{#if @site.navigation}}
|
|
{{navigation}}
|
|
{{/if}}
|
|
{{#is "post"}}
|
|
<span class="nav-post-title {{#unless @site.logo}}dash{{/unless}}">{{post.title}}</span>
|
|
{{/is}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="site-nav-right">
|
|
{{#if @site.secondary_navigation}}
|
|
{{navigation type="secondary"}}
|
|
{{else}}
|
|
<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>
|
|
<a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
|
|
{{/if}}
|
|
|
|
{{#unless @member}}
|
|
<a class="subscribe-button" href="#subscribe">Subscribe</a>
|
|
{{else}}
|
|
<a class="subscribe-button" href="#/portal/account">Account</a>
|
|
{{/unless}}
|
|
|
|
</div>
|
|
</nav>
|