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 a491a9587e Landing Page (#413)
* crazy egg script

* Client gs guides (#398)

* JS for intra-article tabbing

* Combine Android/iOS guide to tabbable "Getting Started with Mobile" + image.

* Link changes -> redirect.

* b.e. & mobile edits

* GS w/ Desktop App + Images

* tagging

* video cleanup

* header improvements

* GS w/ Web Vault + reorder

* orgs name change

* web vault article frame

* web vault article

* Landing (#399)

* poc

* "Home" sidebar option

* Events into Resources card

* events <-> suggest an edit

* tweaks

* card fix

* fix video icons

* video size

* margin/border on secondary cards

* added table items

* links & drop a stray item

* more responsive secondary cards

* fixed linking

* link fixes

* crazy egg script merge

* mobile view for alignment of columns in help

* mobile image width issue fix

* responsiveness fixes

* final edits

* link check

Co-authored-by: David Choi <davidgumzchoi@gmail.com>
2021-02-22 09:42:06 -05:00

56 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>
{% for category in site.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>