From e8e47f1badde19d4094f4d1f468005b81176f6b8 Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 10 May 2021 11:02:43 -0400 Subject: [PATCH] page: Remove Name field --- dir.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/dir.go b/dir.go index de1a820..4537f84 100644 --- a/dir.go +++ b/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) }