blog_header.html 536 Bytes
Newer Older
JohnMH's avatar
JohnMH committed
1 2
<h1>John's Blog</h1>
<p>A blog about software, electronics and opinions. Mostly opinions.</p>
3
<hr/>
JohnMH's avatar
JohnMH committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17
<ol class="breadcrumbs">
    {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ol>
{{ define "breadcrumbnav" }}
{{ if .p1.Parent }}
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 )  }}
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 )  }}
{{ end }}
<li{{ if eq .p1 .p2 }} class="active"{{ end }}>
    <a href="{{ .p1.Permalink }}">{{ .p1.LinkTitle }}</a>
</li>
{{ end }}
<hr/>