site: Set URL for root directory

This commit is contained in:
adnano 2022-02-09 09:22:14 -05:00
parent e4217aca3f
commit 13ff1a687c

View file

@ -71,7 +71,7 @@ func (site *Site) run() error {
func (s *Site) runTask(task *Task) error {
// Read content
s.root = &Page{Path: "/", FilePath: ""}
s.root = &Page{Path: "/", FilePath: "", URL: task.URL + "/"}
if err := s.root.read("content", task, s); err != nil {
return err
}