# Implementing breadcrumb navigation in hugo?

**URL:** <https://discourse.gohugo.io/t/implementing-breadcrumb-navigation-in-hugo/1048>\
**Category:** support\
**Created:** [April 14, 2015, 9:45am UTC](https://discourse.gohugo.io/t/implementing-breadcrumb-navigation-in-hugo/1048 "2015-04-14T09:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 42

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [August 19, 2017, 9:43pm UTC](https://discourse.gohugo.io/t/implementing-breadcrumb-navigation-in-hugo/1048/42 "2017-08-19T21:43:01Z")

</div>

@maltesa Yours is by far the simplest solution for Breadcrumb Navigation. Thank you!

I modified it a bit to exclude the homepage link as I needed to give it a different name than the title.

Here is the modified snippet.

> ```
> <span class="breadcrumb">
> <a href="/">Custom Homepage Title</a>
> {{ template "breadcrumb" dict "currentPage" .Page "id" .UniqueID }}
> </span>
> 
> <!-- templates -->
> {{ define "breadcrumb" }}
> {{ if .currentPage.Parent }}
> {{ if ne .currentPage.Parent .IsHome }}
> {{ template "breadcrumb" dict "currentPage" .currentPage.Parent }}
> {{ end }}
> {{ if eq .id .currentPage.UniqueID }}
> {{ .currentPage.Title }}
> {{ else }}
> <a href="{{ .currentPage.URL }}">{{ .currentPage.Title }}</a> >
> {{ end }}
> {{ end }}
> {{ end }}
> 
> ```

---

_[View the full topic](https://discourse.gohugo.io/t/implementing-breadcrumb-navigation-in-hugo/1048)._
