mirror of
https://github.com/danog/gojekyll.git
synced 2025-01-22 20:01:13 +01:00
Remove page.{dir,name,permalink}
This commit is contained in:
parent
f3d5829df2
commit
7a551f516c
@ -1,7 +1,6 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
@ -52,13 +51,6 @@ func (p *page) ToLiquid() interface{} {
|
||||
"url": p.Permalink(),
|
||||
// "output": // TODO; includes layouts
|
||||
|
||||
// not documented, but present in both collection and non-collection pages
|
||||
"permalink": p.Permalink(),
|
||||
|
||||
// TODO only in non-collection pages:
|
||||
"dir": fmt.Sprintf("%c%s", filepath.Separator, path.Dir(relpath)),
|
||||
"name": path.Base(relpath),
|
||||
|
||||
// TODO documented as present in all pages, but de facto only defined for collection pages
|
||||
"id": base,
|
||||
"categories": p.Categories(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user