Skip to content

Commit

Permalink
Display redpanda comonent by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill committed Apr 26, 2023
1 parent 247b759 commit 5af7f54
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/css/home.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.home .container {
.home .features .container {
width: 100%;
padding: 10px;
margin: 0 auto;
Expand Down
32 changes: 23 additions & 9 deletions src/partials/nav-explore.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="context">
<div class="container has-dropdown">
{{#if (or (eq page.attributes.exclude-from-dropdown-selector true) (eq page.layout '404'))}}
<span class="title">Explore Docs</span>
{{#with site.components.redpanda}}
<span class="title">{{./latest.title}}</span>
{{/with}}
{{else}}
<span class="title">{{page.component.title}}</span>
{{/if}}
Expand All @@ -17,18 +19,30 @@
{{/each}}
</div>
</div>
{{#if (ne page.componentVersion.displayVersion 'default')}}
<div class="container has-dropdown">
{{#if (or (eq page.attributes.exclude-from-dropdown-selector true) (eq page.layout '404'))}}
{{#with site.components.redpanda}}
<span class="current-version">{{./latest.displayVersion}}</span>
{{/with}}
{{else if (ne page.componentVersion.displayVersion 'default')}}
<span class="current-version">{{page.componentVersion.displayVersion}}</span>
{{/if}}
<div class="versions">
{{#each page.component.versions}}
<span class="version
{{~#if (eq this.version @root.page.component.latest.version)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>
</span>
{{/each}}
{{#if (or (eq page.attributes.exclude-from-dropdown-selector true) (eq page.layout '404'))}}
{{#each site.components.redpanda.versions}}
<span class="version">
<a href="{{{relativize this.url}}}">{{this.displayVersion}}</a>
</span>
{{/each}}
{{else if (ne page.componentVersion.displayVersion 'default')}}
{{#each page.component.versions}}
<span class="version
{{~#if (eq this.version @root.page.component.latest.version)}} is-latest{{/if}}">
<a href="{{{relativize ./url}}}">{{./displayVersion}}</a>
</span>
{{/each}}
{{/if}}
</div>
</div>
{{/if}}
</div>
</div>

0 comments on commit 5af7f54

Please sign in to comment.