aboutsummaryrefslogtreecommitdiff
path: root/templates/_header.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_header.tmpl')
-rw-r--r--templates/_header.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/_header.tmpl b/templates/_header.tmpl
index 6a20f55..8265422 100644
--- a/templates/_header.tmpl
+++ b/templates/_header.tmpl
@@ -7,6 +7,14 @@
<div id="main-header-forge-title">
<a href="/">{{- .global.forge_title -}}</a>
</div>
+ <nav id="breadcrumb-nav">
+ {{- $path := "" -}}
+ {{- range $i, $segment := .url_segments -}}
+ {{- $path = printf "%s/%s" $path $segment -}}
+ <span class="breadcrumb-separator">/</span>
+ <a href="{{ $path }}">{{ $segment }}</a>
+ {{- end -}}
+ </nav>
<div id="main-header-user">
{{- if ne .user_id_string "" -}}
<a href="/:/users/{{- .user_id_string -}}">{{- .username -}}</a>