mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
config: Rename urls to url
This commit is contained in:
parent
59dd1796a0
commit
c382c296c8
|
@ -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":
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue