mirror of
https://github.com/danog/gojekyll.git
synced 2025-01-22 20:11:18 +01:00
Code format
This commit is contained in:
parent
1fa322bb69
commit
6a15ee0463
@ -45,23 +45,16 @@ func (p *page) ToLiquid() interface{} {
|
|||||||
ext = filepath.Ext(relpath)
|
ext = filepath.Ext(relpath)
|
||||||
)
|
)
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
|
"categories": p.Categories(),
|
||||||
"content": p.maybeContent(),
|
"content": p.maybeContent(),
|
||||||
"date": fm.Get("date", p.fileModTime),
|
"date": fm.Get("date", p.fileModTime),
|
||||||
"excerpt": p.Excerpt(),
|
"excerpt": p.Excerpt(),
|
||||||
"path": relpath,
|
|
||||||
"url": p.Permalink(),
|
|
||||||
"slug": fm.String("slug", utils.Slugify(utils.TrimExt(filepath.Base(p.relpath)))),
|
|
||||||
// "output": // TODO; includes layouts
|
|
||||||
|
|
||||||
// TODO documented as present in all pages, but de facto only defined for collection pages
|
|
||||||
"id": utils.TrimExt(p.Permalink()),
|
"id": utils.TrimExt(p.Permalink()),
|
||||||
"categories": p.Categories(),
|
"path": relpath,
|
||||||
"tags": p.Tags(),
|
|
||||||
// "title": base,
|
|
||||||
|
|
||||||
// TODO Only present in collection pages https://jekyllrb.com/docs/collections/#documents
|
|
||||||
"relative_path": filepath.ToSlash(p.site.RelativePath(p.filename)),
|
"relative_path": filepath.ToSlash(p.site.RelativePath(p.filename)),
|
||||||
// TODO collection(name)
|
"slug": fm.String("slug", utils.Slugify(utils.TrimExt(filepath.Base(p.relpath)))),
|
||||||
|
"tags": p.Tags(),
|
||||||
|
"url": p.Permalink(),
|
||||||
|
|
||||||
// de facto
|
// de facto
|
||||||
"ext": ext,
|
"ext": ext,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user