1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00
Files
help/_includes/sidebar.html
fred_the_tech_writer 906e2ca0dd Promote to Master (#748)
* initial commit

* adding quotes for the array error

* Create Gemfile

* Create Gemfile.lock

* add .nvmrc and .node-version

* removed /article from URL

* update links to work with netlify

* more fixed links

* link fixes

* update bad links

* Update netlify.toml

toml test for redirects

* article redirect

* link fixes

* Update index.html

* Update netlify.toml

* Update _config.yml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* add article back into URL for launch

* Update netlify.toml

* Update netlify.toml

* add order to categories front matter

* Update netlify.toml

* update

* sidemenu update

* Revert "sidemenu update"

This reverts commit 5441c3d35c.

* update order prop

* Navbar updates per Gary and compiler warnings

* font/style tweaks

* Update sidebar.html

* Stage Release Documentation (#739)

* initial drafts

* rewrite Custom Fields article to prioritize new context-menu option & better organize ancillary information

* edit

* edit

* Custom Field Context Menu & CAPTCHA item in release notes

* SSO relink event

* update rn

* small edits

* improve release notes titles

* fix side menu

* Edits courtest of mportune!

* update order

* link fixes

* link cleanup

* image updates and a link

* fix trailing slash

Co-authored-by: DanHillesheim <79476558+DanHillesheim@users.noreply.github.com>
2021-09-21 13:21:11 -04:00

57 lines
2.3 KiB
HTML

{% assign sorted_articles = site.articles | sort: 'order' %}
<nav class="bd-links collapse" id="bd-docs-nav" aria-label="Main navigation">
<div class="bd-toc-search">
<form class="search-header" action="{{site.baseurl}}/search/" id="search" method="get">
<div class="input-group input-group-lg">
<input type="search" class="form-control" placeholder="Search..." id="search-box" name="q">
<button class="btn btn-light" type="submit" onclick="gaEvent('Search')">
<i class="fa fa-search"></i>
<span class="sr-only">Search</span>
</button>
</div>
</form>
</div>
<div class="bd-toc-item">
<a class="bd-toc-link" href="{{site.baseurl}}/">
Home
</a>
</div>
<div class="bd-toc-item">
<a class="bd-toc-link" href="{{site.baseurl}}/article/releasenotes">
Release Notes
</a>
</div>
{% assign sorted_categories = site.categories | sort: 'order' %}
{% for category in sorted_categories %}
{% if category.hidden != true %}
{% assign catFilename = category.path | filename %}
{% if page.categories contains catFilename or page.url contains catFilename %}
{% assign activeCategoryPage = true %}
{% else %}
{% assign activeCategoryPage = false %}
{% endif %}
<div class="bd-toc-item">
<a class="bd-toc-link" data-toggle="collapse" data-target="#{{catFilename}}" role="button" {% if activeCategoryPage %}aria-expanded="true"{% else %}aria-expanded="false"{% endif %} aria-controls="{{catFilename}}" aria-label="Toggle {{category.title}}">
{{category.title}}
<small class="ml-auto"><i class="fa fa-chevron-down"></i></small>
</a>
<ul {% if activeCategoryPage %}class="nav bd-sidenav collapse show"{% else %}class="nav bd-sidenav collapse"{% endif %} id="{{catFilename}}">
{% for article in sorted_articles %}
{% if article.categories contains catFilename and article.hidden != true %}
<li {% if page.url contains article.url %}class="active"{% endif %}>
<a href="{{site.baseurl}}{{article.url}}">{{article.title}}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
</nav>