mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Fix some livereload content regressions
Introduced in Hugo 0.38. Fixes #4566
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user