Channel Config
The channel option is used to config the feed channel. The configurable options and default value are as follows:
# channel.title
- Type:
string
- Default:
SiteConfig.title
Channel title
# channel.link
- Type:
string
- Default: Deployment link (generated by
options.hostname
andcontext.base
)
Channel address
# channel.desciption
- Type:
string
- Default:
SiteConfig.description
Channel description
# channel.language
Type:
string
Default:
siteConfig.locales['/'].lang
- If the above is not provided, fall back to
"en-US"
The language of the channel
# channel.copyright
Type:
string
Default:
- Try to read the
author.name
in channel options, and fall back toCopyright by $author
- Try to read the
Recommended to set manually: Yes
Channel copyright information
# channel.pubDate
- Type:
string
(must be a valid Date ISOString) - Default: time when the plugin is called each time
- Recommended to set manually: Yes
Publish date of the Channe
# channel.lastUpdated
- Type:
string
(must be a valid Date ISOString) - Default: time when the plugin is called each time
Last update time of channel content
# channel.ttl
- Type:
number
- Recommended to set manually: Yes
The effective time of the content. It’s the time to keep the cache after request without making new requests.
# channel.image
- Type:
string
- Recommended to set manually: Yes
A picture presenting the channel. A square picture with a size not smaller than 512×512 is recommended.
# channel.icon
- Type:
string
- Recommended to set manually: Yes
An icon representing a channel, a square picture, with not less than 128×128 in size, and transparent background color is recommended .
# channel.author
- Type:
FeedAuthor
- Recommended to set manually: Yes
The author of the channel.
FeedAuthor format
interface FeedAuthor {
/** Author name */
name: string;
/** Author’s email */
email?: string;
/** Author’s site */
url?: string;
/**
* Author’s avatar address
*
* Square, preferably not less than 128×128 with transparent background
*/
avator?: string;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
# channel.hub
- Type:
string
Link to Websub. Websub requires a server backend, which is inconsistent with VuePress, so ignore it if there is no special need.
WebSub
For details, see Websub (opens new window).