@ 261101.7
current
{{define "page"}}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}}</title>
{{if .Stopped}}<style>{{.Style}}</style>{{else}}<link rel="stylesheet" href="{{styleURL}}">{{end}}
{{with .Live}}<script data-live="{{if not $.Fixed}}{{.}}{{end}}">{{liveJS}}</script>
{{end}}</head>
<body class="{{.Kind}}">
{{with .Built}}<p class="built" data-built="{{.Millis}}">built {{.Clock}}, <span>{{.Ago}}</span> s ago, from {{.Commit}}{{with .Rendered}}, rendered in {{.}}{{end}}</p>
{{end}}<header>
<nav>{{range $i, $c := .Crumbs}}{{if $i}}&nbsp;/ {{end}}{{if $c.Href}}<a href="{{$c.Href}}"{{with $c.Title}} title="{{.}}"{{end}}>{{$c.Label}}</a>{{else if $c.Title}}<span title="{{$c.Title}}">{{$c.Label}}</span>{{else}}<span>{{$c.Label}}</span>{{end}}{{end}}</nav>
{{if not .Stopped}}<span>{{with .Status}}<span class="age">{{.}}</span>{{end}}{{if .Raw}}<a href="?raw">raw</a>{{end}}{{if not (or .Shared .NoStop)}}<form method="post" action="{{ownPath}}stop">{{if .Tree}}<input type="hidden" name="tree" value="{{.Tree}}"><button>Delete lock</button>{{else}}<button class="kill">Kill server</button>{{end}}</form>{{end}}</span>{{end}}
</header>
{{if not .Stopped}}{{with .Search}}<div class="search"><input type="search" class="search" data-search="{{.}}" data-recents="{{$.Recents}}" placeholder="search" aria-label="Search this directory" autocomplete="off"><span class="tools"><button class="copy" title="copy the page's text" aria-label="copy the page's text">⧉</button>{{if $.Forge}}<button class="share" data-forge="{{$.Forge}}" data-lines="{{$.ForgeLines}}" title="copy the forge's link to what is selected, or to the page" aria-label="copy the forge's link to what is selected, or to the page">⤴</button>{{else}}<button class="share" title="copy a link to what is selected, or to the page" aria-label="copy a link to what is selected, or to the page">⤴</button>{{end}}</span></div>
{{end}}{{end}}<main>
{{.Body}}
</main>
{{if .Bug}}<p class="bug"><button class="bug" data-post="{{ownPath}}bug" title="report a bug in {{progName}} and this server; the page and the selected text go with it">{{progName}} bug</button></p>
{{end}}
</body>
</html>
{{end}}