{{define "body"}}
<div class="row">
    <div class="nav-container full-width relative">
    <ol class="breadcrumb full-width">
        <li class="breadcrumb-item"></li>
        <li class="breadcrumb-item"><a href="/{{.BodyTitle}}">{{.BodyTitle}}</a></li>
        <li class="breadcrumb-item active">{{.Data.Title}}</li>
    </ol>
    <div class="btn-group btn-breadcrumb">
        <a href="/view/{{.Key}}/md" class="btn btn-sm btn-primary">Markdown</a>
    </div>
    </div>
</div>
<div class="row mt-3">
    <div class="col">
        <strong>Created by:</strong> {{.Data.Created}}<br>
        {{if .Data.Updated}}
        <strong>Updated by:</strong> {{.Data.Updated}}<br>
        {{end}}
        <strong>Visibility:</strong>
        {{if eq .Data.Perm 1}}
        <span class="badge badge-primary">Public</span>
        {{end}}
        {{if eq .Data.Perm 2}}
        <span class="badge badge-danger">Private</span>
        {{end}}
        <br>
    </div>
</div>
<div class="row mt-5">
    <div class="col">
    {{.Data.TOC}}
    </div>
</div>
{{.Data.HTML}}
{{end}}
