Skip to content

Commit

Permalink
add products menu bar item
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrew committed Dec 5, 2024
1 parent dccb30e commit 5fb12dd
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@
<div class="navbar-brand">
<img src="{{{uiRootPath}}}/img/threatx-icon-red-tx.png" />
<a class="navbar-item" href="{{{or site.url siteRootPath}}}"> {{site.title}} 📕</a>
{{#if env.SITE_SEARCH_PROVIDER}}

</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">
{{#if env.SITE_SEARCH_PROVIDER}}
<div class="navbar-item search hide-for-print">
<div id="search-field" class="field">
<input id="search-input" type="text" placeholder="Search Documentation" {{#if page.home}} autofocus{{/if}}>
</div>
</div>
{{/if}}
</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">
{{/if}}
<a class="navbar-item" href="{{{or site.url siteRootPath}}}">Home</a>
<div class="navbar-item has-dropdown is-hoverable">
<div class="navbar-link">Products</div>
<div class="navbar-dropdown">
<a class="navbar-item" href="{{{or site.url siteRootPath}}}/txprevent/current/index.html">Prevent {{#if page.attributes.txprevent-current-version}}<small>v{{{page.attributes.txprevent-current-version}}}{{/if}}</small></a>
<a class="navbar-item" href="{{{or site.url siteRootPath}}}/txprevent/current/index.html">Protect {{#if page.attributes.txprotect-current-version}}<small>v{{{page.attributes.txprotect-current-version}}}{{/if}}</small></a>
<hr class="navbar-divider"/>
<a class="navbar-item" href="{{{or site.url siteRootPath}}}/txgeneral/current/index.html">Dashboard</a>
</div>
</div>
{{#if page.attributes.pdf-filename}}
<div class="navbar-item">
<span class="control">
Expand All @@ -26,4 +37,4 @@
</div>
</div>
</nav>
</header>
</header>

0 comments on commit 5fb12dd

Please sign in to comment.