Skip to content

Commit

Permalink
Fix missing components
Browse files Browse the repository at this point in the history
  • Loading branch information
BraininaBowl committed Sep 16, 2024
1 parent 0aa5ec2 commit 7e5246b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/partials/component-listarticle.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<article class="doc">
{{#with page.title}}
<h1 class="page">{{{this}}}</h1>
{{/with}}
{{{page.contents}}}

{{#each (componentList page.attributes.list_type page.attributes.list_groups site.components)}}

<h2>{{display}}</h2>

{{#each components}}
<dt>
<a class="navbar-item" href="{{{relativize this.latest.url}}}">{{this.latest.title}}</a>
</dt>
<dd>
{{this.latest.asciidoc.attributes.component_description}}
</dd>
{{/each}}

{{/each}}

{{> pagination}}
</article>
5 changes: 5 additions & 0 deletions src/partials/component-listbody.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="body">
{{!--> nav --}}
<div class="nav-container" style="width:0em"></div>
{{> "component-list|main"}}
</div>
11 changes: 11 additions & 0 deletions src/partials/component-listmain.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<main class="article">
{{> toolbar}}
<div class="content">
{{#if (eq page.layout '404')}}
{{> article-404}}
{{else}}
{{> toc }}
{{> "component-list|article"}}
{{/if}}
</div>
</main>

0 comments on commit 7e5246b

Please sign in to comment.