config: Rename urls to url

This commit is contained in:
Adnan Maolood 2021-03-19 23:37:22 -04:00
parent 989789118c
commit a2d35e790b
3 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ func (c *Config) Load(path string) error {
switch key {
case "title":
c.Title = value
case "urls":
case "url":
c.URLs = strings.Fields(value)
}
case "feeds":

View file

@ -161,8 +161,8 @@ The following keys are supported:
:[ *Description*
| title
: Site title
| urls
: A list of site URLs separated by whitespace.
| url
: One or more site URLs separated by whitespace.
Site URLs are used when generating Atom feeds.
Site URLs may contain paths, but should not end with a trailing slash.

View file

@ -1,5 +1,5 @@
title=Example Site
urls=gemini://example.com https://example.com
url=gemini://example.com https://example.com
[feeds]
/blog/=Example Feed