diff --git a/src/json.ts b/src/json.ts index 91febd8..cf68161 100644 --- a/src/json.ts +++ b/src/json.ts @@ -37,6 +37,9 @@ export default (ins: Feed) => { if (options.author.link) { feed.author.url = options.author.link; } + if (options.author.avatar) { + feed.author.avatar = options.author.avatar; + } } extensions.map((e: Extension) => { @@ -84,6 +87,9 @@ export default (ins: Feed) => { if (author.link) { feedItem.author.url = author.link; } + if (author.avatar) { + feedItem.author.avatar = author.avatar; + } } if (Array.isArray(item.category)) { diff --git a/src/typings/index.ts b/src/typings/index.ts index ac7e8c3..8ca277a 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -36,6 +36,7 @@ export interface Author { name?: string; email?: string; link?: string; + avatar?: string; } export interface Category {