<!DOCTYPE html>
<html lang="en">
    <head>
        {% include "meta.html" %}
        <title>{{ section.title }} – Docspell Documentation</title>
        <link rel="stylesheet" href="/styles.css">
        {% include "search-head.html" %}
    </head>
    <body>
        <section class="hero is-info is-small">
            <div class="hero-head">
                {% include "navbar.html" %}
            </div>
            <div class="hero-body">
                <div class="columns is-vcentered">
                    <div class="column is-8">
                        <h1 class="title">
                            Docspell Documentation
                        </h1>
                        <h2 class="subtitle">
                            {{ section.title }}
                        </h2>
                    </div>
                    <div class="column">
                        <div id="search"></div>
                    </div>
                </div>
            </div>
        </section>

        <section class="section">
            <div class="container">
                <div class="content is-size-5">
                    This is the documentation for Docspell, version {{ config.extra.version }}.
                </div>
                <div class="columns is-multiline">
                    {% for section in section.subsections %}

                    {% set sub = get_section(path=section) %}

                    <div class="column is-one-third-widescreen is-half-tablet">
                        <div class="card full-height">
                            <a href="{{sub.permalink | safe}}">
                                <div class="card-content">
                                    <div class="media">
                                        <div class="media-content">
                                            <p class="title is-5">
                                                {{ sub.title | title }}
                                            </p>
                                            <p class="has-text">
                                                {{ sub.description }}
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    {% endfor %}
                </div>
            </div>
        </section>


        {% include "footer.html" %}
        {% include "search-part.html" %}
        {% include "fathom.html" %}
    </body>

</html>
