mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-08 14:19:20 +01: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 {
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user