diff --git a/page.go b/page.go index d631b96..37ffb1d 100644 --- a/page.go +++ b/page.go @@ -194,10 +194,6 @@ func (p *Page) process(cfg *Site, task *Task) error { // Create index if p.index { tmpl, ok := cfg.templates.FindTemplate(p.FilePath, "index"+task.TemplateExt) - if !ok { - // Try the base template - tmpl, ok = cfg.templates.FindTemplate(p.FilePath, "base"+task.TemplateExt) - } if ok { var b strings.Builder if err := tmpl.Execute(&b, p); err != nil { @@ -211,10 +207,6 @@ func (p *Page) process(cfg *Site, task *Task) error { for i := range p.Pages { var b strings.Builder tmpl, ok := cfg.templates.FindTemplate(p.FilePath, "page"+task.TemplateExt) - if !ok { - // Try the base template - tmpl, ok = cfg.templates.FindTemplate(p.FilePath, "base"+task.TemplateExt) - } if ok { if err := tmpl.Execute(&b, p.Pages[i]); err != nil { return err