fix(plugin): fix animejs locals file name & add subscribe email widget specs

This commit is contained in:
ppoffice 2019-11-09 16:22:34 -05:00
parent 0700508dd2
commit 258c32a327
2 changed files with 16 additions and 1 deletions

View File

@ -125,6 +125,20 @@ const LinksSpec = {
} }
}; };
const SubscrbieEmailSpec = {
feedburner_id: {
[type]: 'string',
[doc]: 'Feedburner ID',
[required]: true,
[requires]: parent => parent.type === 'subscribe_email'
},
description: {
[type]: 'string',
[doc]: 'Hint text under the subscription input',
[requires]: parent => parent.type === 'subscribe_email'
}
};
module.exports = { module.exports = {
[type]: 'array', [type]: 'array',
[doc]: 'Sidebar widget settings\nhttps://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/', [doc]: 'Sidebar widget settings\nhttps://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/',
@ -146,6 +160,7 @@ module.exports = {
[defaultValue]: 'left' [defaultValue]: 'left'
}, },
...ProfileSpec, ...ProfileSpec,
...LinksSpec ...LinksSpec,
...SubscrbieEmailSpec
} }
} }