mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57:38 +00:00
52f763859a
refs: #751
45 lines
1.9 KiB
Handlebars
45 lines
1.9 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>
|
|
{{#unless @labs.members}}
|
|
<a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@site.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
{{#if @labs.members}}
|
|
{{#unless @member}}
|
|
<a class="subscribe-button" href="#subscribe">Subscribe</a>
|
|
{{else}}
|
|
<a class="subscribe-button" href="#/portal/account">Account</a>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</div>
|
|
</nav>
|