diff --git a/page.html.tmpl b/page.html.tmpl index c158464..7432af7 100644 --- a/page.html.tmpl +++ b/page.html.tmpl @@ -29,9 +29,6 @@ <body> <header> <h1><a href="./">{{with .Data.Project}}{{.}}{{else}}Home{{end}}</a></h1> - {{- range .Data.Breadcrumbs}} - <span>{{.}}</span> - {{- end}} </header> <main> <hr> @@ -174,7 +171,22 @@ {{- end }} <hr> <nav> - <p>Your are here: {{.Title}}</p> + <p> + {{- if .Data.Branches}} + You are home + {{- else}} + You are here: + <a href="./">home</a> + {{- with .Data.Path}} + {{- with .Branch}}: <a href="branch/{{.}}/">{{.}}</a>{{- end}} + {{- with .Commit}}: <a href="commit/{{.}}/">{{printf "%.7s" .}}</a>{{- end}} + {{- end}} + {{- with .Data.Branch}}: <span>{{.Name}}</span>{{- end}} + {{- with .Data.Commit}}: <span>{{.Abbr}}</span>{{- end}} + {{- with .Data.Object}}: <span>{{.Path}}</span>{{- end}} + {{- with .Data.Diff.Commit}}: <span>{{.Abbr}}</span>{{- end}} + {{- end}} + </p> </nav> <hr> </main>
home › develop › 95d309f › e536383