Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
790 B

<div class="container clearfix nav-bar">
{{ define "breadcrumbnav" }}
{{ if .p1.Parent }}
<!-- <p>{{ .p1 }} {{ .p2 }}</p> -->
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
<a href="{{ .p1.RelPermalink }}">
{{ if .p1.IsHome }}~{{ else }}
{{- replace .p1.Title " " "-" | lower -}}
{{ end }}</a>
{{ if ne .p1 .p2 }}
/
{{ end }}
{{ end }}
[
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
]
<span class="caret"># _</span>
<div class="nav-bar-links">
{{ range .Site.Menus.main }}
<a href="{{ .URL }}" class="nav-bar-link">{{ .Name }}</a>
{{ end }}
</div>
</div>