2017-10-15 16:44:36 +00:00
|
|
|
{{define "page"}}
|
|
|
|
{{template "header" .}}
|
|
|
|
{{template "navbar" .}}
|
|
|
|
{{template "github" .}}
|
|
|
|
<div class="container">
|
|
|
|
<h1>
|
2022-01-09 02:33:05 +00:00
|
|
|
{{.Props.Title}}
|
|
|
|
{{if .Props.SubTitle}}
|
|
|
|
<small>{{.Props.SubTitle}}</small>
|
2017-10-15 16:44:36 +00:00
|
|
|
{{end}}
|
|
|
|
</h1>
|
|
|
|
{{template "cloud" .}}
|
|
|
|
<hr>
|
2022-01-09 02:33:05 +00:00
|
|
|
{{.Props.Content}}
|
2017-10-15 16:44:36 +00:00
|
|
|
{{template "breadcrumbs" .}}
|
|
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "tag"}}
|
|
|
|
{{template "header" .}}
|
|
|
|
{{template "navbar" .}}
|
|
|
|
<div class="container">
|
2022-01-09 02:33:05 +00:00
|
|
|
<h1>Tagged “{{.Props.TagState.CurrentTag.RawName}}”</h1>
|
2017-10-15 16:44:36 +00:00
|
|
|
<hr>
|
|
|
|
<ul>
|
2022-01-09 02:33:05 +00:00
|
|
|
{{range .Props.TagState.CurrentTag.TaggedFiles}}
|
|
|
|
<li><a href="/{{.Path}}">{{.Props.Title}}</a></li>
|
2017-10-15 16:44:36 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{template "breadcrumbs" .}}
|
|
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "tags"}}
|
|
|
|
{{template "header" .}}
|
|
|
|
{{template "navbar" .}}
|
|
|
|
<div class="container">
|
|
|
|
<h1>Tags</h1>
|
|
|
|
<hr>
|
|
|
|
<ul>
|
2022-01-09 02:33:05 +00:00
|
|
|
{{range .Props.TagState.TagsByCount}}
|
2020-05-03 04:31:10 +00:00
|
|
|
<li><a href="/{{.IndexFile.Path}}">{{.RawName}}</a> ({{len .TaggedFiles}})</li>
|
2017-10-15 16:44:36 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{template "breadcrumbs" .}}
|
|
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "index"}}
|
|
|
|
{{template "header" .}}
|
|
|
|
{{template "navbar" .}}
|
|
|
|
<div class="container">
|
|
|
|
<h1>Index of /{{.Dir}}</h1>
|
|
|
|
<ul class="list-unstyled">
|
2022-01-09 02:33:05 +00:00
|
|
|
{{range .Props.Files}}
|
2017-10-15 16:44:36 +00:00
|
|
|
{{if .IsDir}}<strong>{{end}}
|
2017-12-29 18:35:43 +00:00
|
|
|
<li><a href="/{{.Path}}">{{.Name}}</a></li>
|
|
|
|
{{if .IsDir}}</strong>{{end}}
|
2017-10-15 16:44:36 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
|
|
{{end}}
|