Fix some livereload content regressions

Introduced in Hugo 0.38.

Fixes #4566
This commit is contained in:
Bjørn Erik Pedersen
2018-04-05 10:57:13 +02:00
parent 4d115c56fa
commit a4deaeff0c
3 changed files with 11 additions and 5 deletions

View File

@@ -438,7 +438,7 @@ func (ps Pages) findPagePosByFilnamePrefix(prefix string) int {
// will return -1 if not found
func (ps Pages) findPagePos(page *Page) int {
for i, x := range ps {
if x.Source.Path() == page.Source.Path() {
if x.Source.Filename() == page.Source.Filename() {
return i
}
}