added cotw list page
This commit is contained in:
parent
8edda56020
commit
babeec2c5a
1 changed files with 21 additions and 13 deletions
|
@ -3,7 +3,10 @@ const rp = require('request-promise');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// Add pages from other locations
|
// Add pages from other locations
|
||||||
async additionalPages () {
|
async additionalPages () {
|
||||||
|
const now = new Date().toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'short', day: 'numeric' });
|
||||||
|
|
||||||
const projects = await rp('https://raw.githubusercontent.com/LBRYFoundation/Awesome-LBRY/master/README.md')
|
const projects = await rp('https://raw.githubusercontent.com/LBRYFoundation/Awesome-LBRY/master/README.md')
|
||||||
|
const cotw = await rp('https://lbry.pigg.es/cotw.md')
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: 'Awesome LBRY Projects',
|
title: 'Awesome LBRY Projects',
|
||||||
|
@ -11,6 +14,11 @@ module.exports = {
|
||||||
editLink: true,
|
editLink: true,
|
||||||
editLinkPattern: ':LBRYFoundation/Awesome-LBRY',
|
editLinkPattern: ':LBRYFoundation/Awesome-LBRY',
|
||||||
content: projects
|
content: projects
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Creator of the Week',
|
||||||
|
path: '/governance/creators-council/cotw/',
|
||||||
|
content: `# Creator Of The Week\nHere's a list of every channel that have been the creator of the week.\n\n*This page was last updated **${now}***\n\n${cotw}`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue