mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
9b6e61464b
commit
196a9df585
4 changed files with 51 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue