~srivathsan/blaze

37534c64bca16c95897cc515ebcf7ef20f6d2365 — Srivathsan Murali 3 years ago 60f3b5d
Page struct: ListsPath not necessary
1 files changed, 0 insertions(+), 2 deletions(-)

M builder/page.go
M builder/page.go => builder/page.go +0 -2
@@ 19,7 19,6 @@ type Page struct {
	Template     string    `yaml:"template"`
	Date         time.Time `yaml:"date"`
	Draft        bool      `yaml:"draft"`
	ListsPath    string    `yaml:"lists-path"`
	Content      string    `fm:"content"`
	UrlFormat    string    `yaml:"url-format"`
	Url          string


@@ 72,7 71,6 @@ func ParsePage(relativePath string, config *config.BlazeConfig) (*Page, error) {
		url = filepath.Dir(url)
	}
	page.Url = url
	page.ListsPath = filepath.Join(config.ContentDir(), page.ListsPath)
	page.Content, err = ParseTemplateString(page.Site, page.Content, page)
	if err != nil {
		return nil, err