ghost-theme-sd.ai/partials/components/navigation.hbs

55 lines
2.3 KiB
Handlebars
Raw Normal View History

2023-07-10 08:44:09 +01:00
<header id="gh-navigation" class="gh-navigation is-{{#match navigationLayout "Logo on the left"}}left-logo{{else match navigationLayout "Stacked"}}stacked{{else}}middle-logo{{/match}}{{#match @custom.header_and_footer_color "Accent color"}} has-accent-color{{/match}} gh-outer">
2023-07-05 13:43:09 +01:00
<div class="gh-navigation-inner gh-inner">
<div class="gh-navigation-brand">
<a class="gh-navigation-logo is-title" href="{{@site.url}}">
2023-07-05 13:43:09 +01:00
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
2023-10-16 18:53:40 +01:00
{{> "components/logo"}}
2023-07-05 13:43:09 +01:00
{{/if}}
</a>
{{> "search-toggle"}}
2023-07-05 14:16:54 +01:00
<button class="gh-burger gh-icon-button">
{{> "icons/burger"}}
{{> "icons/close"}}
</button>
2023-07-05 13:43:09 +01:00
</div>
<nav class="gh-navigation-menu">
{{navigation}}
{{#unless @site.members_enabled}}
{{#match navigationLayout "Stacked"}}
{{> "search-toggle"}}
{{/match}}
{{/unless}}
</nav>
<div class="gh-navigation-actions">
{{#unless @site.members_enabled}}
{{^match navigationLayout "Stacked"}}
{{> "search-toggle"}}
{{/match}}
{{else}}
{{> "search-toggle"}}
<div class="gh-navigation-members">
{{#unless @member}}
{{#unless @site.members_invite_only}}
<a href="#/portal/signin" data-portal="signin">Sign in</a>
{{#unless hideSubscribeButton}}
<a class="gh-button" href="#/portal/signup" data-portal="signup">Subscribe</a>
{{/unless}}
{{else}}
<a class="gh-button" href="#/portal/signin" data-portal="signin">Sign in</a>
{{/unless}}
{{else}}
<a class="gh-button" href="#/portal/account" data-portal="account">Account</a>
{{/unless}}
</div>
{{/unless}}
2023-10-16 17:04:36 +01:00
{{> "theme-switcher"}}
2023-07-05 13:43:09 +01:00
</div>
</div>
</header>