{% extends "man.html" %} {% block title %} {% if title %} {{ title }} - {{domain}} {% else %} {{domain}} {% endif %} {% endblock %} {% block content %} {% set web_url = git_repo_url(repo) %} {% 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 {{ commit.id }}
Author: {{ commit.author.name }} <{{ commit.author.email }}>
Date:   {{ commit.author.time }}

{{ commit.message.rstrip("\n") }}
Clone this wiki{{" (\"" ~ wiki.repo_ref ~ "\" branch)"}}
{% set clone_urls = git_clone_urls(repo) %} {{ clone_urls.https }} (read-only)
{{clone_urls.ssh}} (read/write)
{% 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 %}