1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-06-08 12:26:11 +02:00

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
}