config: Rename urls to url

This commit is contained in:
adnano 2021-03-19 23:37:22 -04:00
parent 59dd1796a0
commit c382c296c8
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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