1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 19:08:22 +01:00

page: Remove Name field

This commit is contained in:
adnano 2021-05-10 11:02:43 -04:00
parent cf7a24bb6c
commit e8e47f1bad

2
dir.go

@ -29,7 +29,6 @@ type Dir struct {
type Page struct {
Title string
Date time.Time
Name string `yaml:"-"`
Path string `yaml:"-"`
Content string `yaml:"-"`
Params map[string]string
@ -131,7 +130,6 @@ func (d *Dir) _read(srcDir, path string, task *Task) error {
} else {
path += "/"
}
page.Name = pathpkg.Base(path)
page.Path = path
d.Pages = append(d.Pages, page)
}