mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
page: Remove Name field
This commit is contained in:
parent
cf7a24bb6c
commit
e8e47f1bad
2
dir.go
2
dir.go
|
@ -29,7 +29,6 @@ type Dir struct {
|
||||||
type Page struct {
|
type Page struct {
|
||||||
Title string
|
Title string
|
||||||
Date time.Time
|
Date time.Time
|
||||||
Name string `yaml:"-"`
|
|
||||||
Path string `yaml:"-"`
|
Path string `yaml:"-"`
|
||||||
Content string `yaml:"-"`
|
Content string `yaml:"-"`
|
||||||
Params map[string]string
|
Params map[string]string
|
||||||
|
@ -131,7 +130,6 @@ func (d *Dir) _read(srcDir, path string, task *Task) error {
|
||||||
} else {
|
} else {
|
||||||
path += "/"
|
path += "/"
|
||||||
}
|
}
|
||||||
page.Name = pathpkg.Base(path)
|
|
||||||
page.Path = path
|
page.Path = path
|
||||||
d.Pages = append(d.Pages, page)
|
d.Pages = append(d.Pages, page)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue