Fix bug causing the breadcrumbs to be duplicated when building the site locally. (#5859)

This commit is contained in:
Martin Taillefer 2019-11-25 13:23:26 -08:00 committed by GitHub
parent e545c0592d
commit 6e44017067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@
{{ $page := .Page }}
{{ $last := false }}
{{ $done := false }}
{{ $.Scratch.Delete "urls" }}
{{ $.Scratch.Delete "titles" }}
{{ $.Scratch.Delete "descriptions" }}
{{ range $index := split $url "/" }}
{{ if $page }}
{{ if not $done }}