mirror of
https://github.com/danog/gojekyll.git
synced 2025-01-22 17:41:12 +01:00
Collection relative_directory doesn't include trailing slash
This commit is contained in:
parent
1855280bbd
commit
eab849b27d
@ -3,6 +3,7 @@ package collection
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/osteele/gojekyll/config"
|
||||
"github.com/osteele/gojekyll/pages"
|
||||
@ -83,7 +84,7 @@ func (c *Collection) ToLiquid() interface{} {
|
||||
"label": c.Name,
|
||||
"docs": c.pages,
|
||||
"files": []string{},
|
||||
"relative_directory": c.PathPrefix(),
|
||||
"relative_directory": strings.TrimSuffix(c.PathPrefix(), "/"),
|
||||
"directory": c.AbsDir(),
|
||||
}))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user