config: Rename task to tasks

This commit is contained in:
adnano 2021-03-20 23:44:13 -04:00
parent feb0c77d66
commit 72e9ba2d78
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ type Config struct {
Title string `toml:"title"` // site title Title string `toml:"title"` // site title
URLs []string `toml:"urls"` // site URLs URLs []string `toml:"urls"` // site URLs
Feeds map[string]string `toml:"feeds"` // site feeds Feeds map[string]string `toml:"feeds"` // site feeds
Tasks map[string]*Task `toml:"task"` // site tasks Tasks map[string]*Task `toml:"tasks"` // site tasks
Templates *Templates `toml:"-"` // site templates Templates *Templates `toml:"-"` // site templates
} }

View file

@ -4,13 +4,13 @@ urls = ["gemini://example.com", "https://example.com"]
[feeds] [feeds]
"/blog/" = "Example Feed" "/blog/" = "Example Feed"
[task.gemini] [tasks.gemini]
input = ".gmi" input = ".gmi"
output = ".gmi" output = ".gmi"
template = ".gmi" template = ".gmi"
destination = "public" destination = "public"
[task.geminiToHTML] [tasks.geminiToHTML]
input = ".gmi" input = ".gmi"
output = ".html" output = ".html"
template = ".gmi" template = ".gmi"