Files
GeyserWebsite/_includes/sidebar-nav.html
T
897577f575 Re-write the setup pages (#171)
* Initial setup page

* Cleanup new setup page

* Space out options

* Fix host providers with templates

* Cleanup host provider classes

* Fix spacing to make it all look more uniform

* Always show setup options and add provider infomation inside an alert

* Drop side margin

* Add collapsable sidebar

* Add build_in host on provider selector (#166)

* add buildin host provider support

* concat js loop

* Cleanup indent for cleaner commit

* Move all_providers

---------

Co-authored-by: rtm516 <rtm516@users.noreply.github.com>

* start on proper setup instructions

* Add self-hosting info

* Add not listed and fix some other minor issues

* - Floodgate setup/FAQ page
- Add version warnings/info in FAQ
- Merging upstream/master
- Replace old setup page with new one; minus videos

* Show Self-Host vs Hosting Provider pages

* Move to tabs, add icons and structure cleanup

* Less repetition, wording

* Updated Standalone setup instructions

* Show "Not listed" provider option at the top of the hosting provider list

---------

Co-authored-by: JensC <jenscollaertyprive@hotmail.com>
Co-authored-by: Jens Co <63231928+Jens-Co@users.noreply.github.com>
Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2023-07-23 18:08:38 +01:00

36 lines
1.7 KiB
HTML

<nav class="navbar navbar-expand-md">
<div class="container-fluid">
<div class="d-block d-md-none">Wiki Navigation</div>
<button class="navbar-toggler mb-2" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-column align-items-start" id="sidebarNav">
{% for section in site.data.toc %}
{% assign section_size = section.url | size %}
{% assign current_section = page.url | remove_first: "/" | | truncate: section_size, "" %}
{% if current_section == "" %}
{% assign current_section = "geyser/" %}
{% endif %}
<div class="nav-item dropdown">
<a class="nav-link dropdown-toggle fw-bold{% if current_section == section.url %} show{% endif %}" href="#" role="button" data-bs-toggle="dropdown" data-bs-auto-close="false" aria-expanded="false">{{ section.title }}</a>
<ul class="pe-3 pt-0 dropdown-menu position-relative border-0 list-disc{% if current_section == section.url %} show{% endif %}">
{% for entry in section.links %}
<li class="ms-4">
<a href="{% if entry.url %}{{ site.baseurl }}/{{ entry.url }}{% else %}{{ entry.external_url }}{% endif %}">{{ entry.title }}</a>
{% if entry.children %}
<ul>
{% for child in entry.children %}
<li>
<a href="{% if child.url %}{{ site.baseurl }}/{{ child.url }}{% else %}{{ child.external_url }}{% endif %}">{{ child.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
</nav>