Added news articles and server processing

This commit is contained in:
Martin Donnelly 2018-03-05 19:21:00 +00:00
parent 21e5c6b230
commit 80e5b25caf

View File

@ -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"]');