Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index f5031332c..8aad8dcc7 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -954,7 +954,7 @@ func (p *pageState) sourceRefs() []string {
path := meta.PathFile()
if path != "" {
- ref := "/" + path
+ ref := "/" + filepath.ToSlash(path)
if ref != refs[0] {
refs = append(refs, ref)
}