Skip to content

Commit

Permalink
#13 fix for http sites. change name to match existing json
Browse files Browse the repository at this point in the history
  • Loading branch information
artlung committed May 30, 2024
1 parent 23296aa commit 1c080e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ sites.blogs.forEach(site => {
// log whether the site has a description
const hasDescriptionKey = sites.descriptions.hasOwnProperty(site);
const hasDescription = sites.descriptions[site] && sites.descriptions[site].length > 0;
const protocol = httpSites.includes(site) ? 'http://' : 'https://';
const protocol = httpSites.sites.includes(site) ? 'http://' : 'https://';

if (!hasDescriptionKey) {
console.log(`Fetching description for ${site}.`);
Expand Down Expand Up @@ -107,7 +107,7 @@ Object.keys(dates.dates).forEach(date => {
const site = dates.dates[date];
const sites = require('./sites.json');
const description = sites.descriptions[site] || '';
const protocol = httpSites.includes(site) ? 'http://' : 'https://';
const protocol = httpSites.sites.include(site) ? 'http://' : 'https://';
feed.item({
title: site,
description: description,
Expand Down
2 changes: 1 addition & 1 deletion http-sites.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blogs": [
"sites": [
"thisvictorianlife.com"
]
}

0 comments on commit 1c080e2

Please sign in to comment.