19 lines
603 B
JavaScript
19 lines
603 B
JavaScript
const rp = require('request-promise');
|
|
|
|
module.exports = {
|
|
// Add pages from other locations
|
|
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')
|
|
return [
|
|
{
|
|
title: 'Awesome LBRY Projects',
|
|
path: '/projects/',
|
|
editLink: true,
|
|
editLinkPattern: ':LBRYFoundation/Awesome-LBRY',
|
|
content: projects
|
|
}
|
|
]
|
|
}
|
|
}
|