Skip to content

Commit

Permalink
Revert to previous behavior for non-docs (neo4j-documentation#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
recrwplay committed Jul 22, 2024
1 parent 446cc41 commit 8ebe696
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/partials/toolbar.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
<div class="toolbar{{#if @root.page.home}} is-home{{/if}}" role="navigation">
<div class="toolbar-wrapper">
{{> nav-toggle}}

{{#unless (and @root.page.home (eq page.attributes.layout 'docs-ndl'))}}

{{#if (eq page.attributes.theme "docs")}}


{{#with @root.site.url}}
<a href="{{{relativize this}}}" class="home-link" aria-label="Go to docs home page"></a>
{{/with}}

{{else}}

{{#with site.homeUrl}}
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}" aria-label="Go to home page"></a>
{{/with}}

{{/if}}


{{> breadcrumbs}}
{{!-- {{> page-versions}} --}}
{{> edit-this-page-link}}
Expand Down

0 comments on commit 8ebe696

Please sign in to comment.