Skip to content

Commit

Permalink
hid toolbar and toc on full and landing layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
colegoldsmith committed Oct 27, 2023
1 parent 4005896 commit c5e8c94
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/partials/main.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<main class="article">
{{> toolbar}}
{{#unless (eq page.layout 'full')}}
{{> toolbar}}
{{/unless}}
<div class="content">
{{#if (eq page.layout '404')}}
{{> article-404}}
{{else}}
{{> toc}}
{{> article}}
{{/if}}
{{#if (eq page.layout '404')}}
{{> article-404}}
{{else}}
{{#unless (or (eq page.layout 'full') (eq page.layout 'landing'))}}
{{> toc}}
{{/unless}}
{{> article}}
{{/if}}
</div>
</main>
</main>

0 comments on commit c5e8c94

Please sign in to comment.