Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (53 sloc) 1.8 KB
{% extends "default.html" %}
{% block content %}
<section class="hero is-primary" style="background-image: url(/{{ hashes['images/bg-pattern-dark.png'] }})">
<div class="hero-body">
<div class="container">
<h1 class="title">
{% set versionTitle = version %}
{% if version == 'latest' or version == data.docs.versions[1] %}
{% set versionTitle = data.docs.versions[1] + ' — latest' %}
{% endif %}
Documentation ({{ versionTitle }})
</h1>
</div>
</div>
</section>
<div class="container">
<section class="section">
<nav class="breadcrumb">
<ul>
<li><a href="/" style="padding-left: 0">Fastify</a></li>
<li><a href="/docs/">Documentation</a></li>
<li>
<div class="field">
<div class="control">
<div class="select">
<select onchange="if (this.value) window.location.href=this.value" style="border: none;">
{% for v in data.docs.versions %}
{% if v !== 'latest' %}
{% set versionName = v %}
<option {% if version == v or (version == 'latest' and v == data.docs.versions[1]) %}selected="selected"{% endif %} value="/docs/{{ v }}">{{ versionName }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
</div>
</li>
<li class="is-active"><a>Table of contents</a></li>
</ul>
</nav>
<div class="content">
<h2>Table of contents</h2>
<ul>
{% for item in data.docs.toc[version] %}
<li>
<a href="{{ item.link }}">{{ item.name }}</a>
</li>
{% endfor %}
</ul>
</div>
</section>
</div>
{% endblock %}