{% extends "man.html" %} {% block title %} {% if title %} {{ title }} - {{domain}} {% else %} {{domain}} {% endif %} {% endblock %} {% block content %} {% if not is_root or len(path) != 0 %}
{% if wiki and not is_root %}
{{wiki.owner.canonical_name}}/{{wiki.name}}
{% endif %} {% endif %}
{{ firstpara }}
{% if frontmatter.get("toc", True) and len(toc) != 0 %}

Table of Contents

    {% macro toc_entry(entry, depth) %}
  1. {{ entry.name }} {% if len(entry.children) > 0 %}
      {% for child in entry.children %} {{ toc_entry(child, depth + 1) }} {% endfor %}
    {% endif %}
  2. {% endmacro %} {% for entry in toc %} {{ toc_entry(entry, 0) }} {% endfor %}
{# TODO #}
{% endif %}
{{ content }}

About this wiki

commit {{ repo.commit_sha }}
Author: {{ repo.commit_author }} <{{ repo.commit_email }}>
Date:   {{ repo.commit_time }}

{{ repo.commit_message.rstrip("\n") }}
Clone this wiki{{" (\"" ~ repo.ref ~ "\" branch)"}}
{% for url in clone_urls|map(attribute="url") %} {% if "://" in url %} {{ url }} (read-only)
{% else %} {{url}} (read/write)
{% endif %} {% endfor %}
{% if current_user %} {% if is_root %} Create a wiki {{icon("caret-right")}} {% endif %} {% if wiki and wiki.owner.username == current_user.username %} Settings for this wiki {{icon('caret-right')}} {% endif %} Browse your wikis {{icon('caret-right')}} {% endif %}
{% endblock %}