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

  1. <div class="container clearfix nav-bar">
  2. {{ define "breadcrumbnav" }}
  3. {{ if .p1.Parent }}
  4. <!-- <p>{{ .p1 }} {{ .p2 }}</p> -->
  5. {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
  6. {{ else if not .p1.IsHome }}
  7. {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
  8. {{ end }}
  9. <a href="{{ .p1.RelPermalink }}">
  10. {{ if .p1.IsHome }}~{{ else }}
  11. {{- replace .p1.Title " " "-" | lower -}}
  12. {{ end }}</a>
  13. {{ if ne .p1 .p2 }}
  14. /
  15. {{ end }}
  16. {{ end }}
  17. [
  18. {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
  19. ]
  20. <span class="caret"># _</span>
  21. <div class="nav-bar-links">
  22. {{ range .Site.Menus.main }}
  23. <a href="{{ .URL }}" class="nav-bar-link">{{ .Name }}</a>
  24. {{ end }}
  25. </div>
  26. </div>