gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Feb. 19 '23 12:31:59
Commit
e536383ef658ac004a622ca0102bfd087d77e1ca
Parent
95d309f571ed745b295f45504df7f72134355222
Changes
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>