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
View file

@ -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)
} }