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 {
|
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":
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue