# パンくずしたい(``/layouts/partials/breadcrumbs.html``)
```html
```
```html
```
[Hugo Codexのブログ記事](https://hugocodex.org/blog/breadcrumbs-since-1-09/)にあったコードを拝借しました。
[Hugo v0.109のリリース](https://github.com/gohugoio/hugo/releases/tag/v0.109.0)で``.Ancestors``が追加され、パンくずリストの作成が簡単になったそうです。
``.Ancestors``は現在のページからトップページまで遡ったページ情報が順番に格納されるページ変数です。
``.Ancestors.Reverse``で逆順にすることで、いわゆる「パンくずリスト」の順番でページを取り出しています。
## リファレンス
- [Ancestors - gohugo.io](https://gohugo.io/methods/page/ancestors/)
- [Breadcrumbs - hugocodex.org](https://hugocodex.org/add-ons/breadcrumbs/)