Skip to content

Commit

Permalink
move component order lookup into nav-explore partial
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 5, 2023
1 parent f6e4429 commit 46fa572
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/layouts/404.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body class="status-404">
{{> header}}
{{> body componentOrder=(dig (siteStartPage) 'asciidoc.attributes.page-component-order')}}
{{> body}}
{{> footer}}
</body>
</html>
2 changes: 1 addition & 1 deletion src/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
{{> header}}
{{> body componentOrder=page.attributes.component-order}}
{{> body}}
{{> footer}}
</body>
</html>
2 changes: 1 addition & 1 deletion src/partials/nav-explore.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
{{/if}}
<ul class="components">
{{#each (rearrange site.components 'name' componentOrder)}}
{{#each (rearrange site.components 'name' (or page.attributes.component-order (dig (siteStartPage) 'asciidoc.attributes.page-component-order')))}}
<li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
<a class="title" href="{{{relativize ./url}}}">{{{./title}}}</a>
{{#if (or ./versions.[1] (and (ne ./versions.[0].displayVersion 'default') (ne ./versions.[0].displayVersion 'pre-spec')))}}
Expand Down

0 comments on commit 46fa572

Please sign in to comment.