Added news articles and server processing
This commit is contained in:
parent
21e5c6b230
commit
80e5b25caf
@ -14,7 +14,7 @@ function reduceArticle(body = '') {
|
||||
const $ = cheerio.load(body);
|
||||
|
||||
const title = $('meta[property="og:title"]').attr('content');
|
||||
const image = `http://image.silvrtree.co.uk/640,fit,q80/${ $('meta[property="og:image"]').attr('content')}`;
|
||||
const image = `https://image.silvrtree.co.uk/640,fit,q80/${ $('meta[property="og:image"]').attr('content')}`;
|
||||
|
||||
const stuff = $('[itemprop="articleBody"]');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user