* Rewrite and re-style the wiki * Fix links * Fix mobile width being wrong * Make the anticheat warning pretty * Fix root pages * Fix code blocks and cleanup some other bits * Fix search * Fix android and iOS sidebar links
29 lines
1.2 KiB
HTML
29 lines
1.2 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 %}
|
|
<a class="fw-bold" href="{% if section.url %}{{ site.baseurl }}/{{ section.url }}{% else %}{{ section.external_url }}{% endif %}">{{ section.title }}</a>
|
|
<ul class="pe-3">
|
|
{% for entry in section.links %}
|
|
<li>
|
|
<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>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</nav> |