diff --git a/scripts/generators/generator-dynamic-blogroll.js b/scripts/generators/generator-dynamic-blogroll.js index 0ff2b7051f..f9c8f67811 100644 --- a/scripts/generators/generator-dynamic-blogroll.js +++ b/scripts/generators/generator-dynamic-blogroll.js @@ -75,12 +75,14 @@ hexo.extend.generator.register("dynamic-blogroll", async function(locals) { } else { log.error("Fetching feed from " + item.title + " responded with status " + response.status); item.errorStatus = response.status; - if (item.errorStatus === 403) { console.log(response); } + if (item.errorStatus === 403) { + //console.log(response); + } } resolve(); }).catch(err => { log.error("Fetching feed from " + item.title + " failed"); - console.log(err); + //console.log(err); resolve(); // Resolve anyway, to suppress errors }); })); diff --git a/themes/landscape/layout/_partial/post/interaction.ejs b/themes/landscape/layout/_partial/post/interaction.ejs index 89358e91e8..2d557d4c05 100644 --- a/themes/landscape/layout/_partial/post/interaction.ejs +++ b/themes/landscape/layout/_partial/post/interaction.ejs @@ -1,7 +1,10 @@ <% let syndications = post.syndication?.filter(s => s.url?.length > 0 && s.host?.length > 0) let synDevTo = syndications?.find(s => s.host.toLowerCase() === "devto"); - let synPixelfed = syndications?.find(s => s.host.toLowerCase() === "pixelfed"); + let synPixelfed = syndications?.filter(s => s.host.toLowerCase() === "pixelfed"); + let synLemmy = syndications?.filter(s => s.host.toLowerCase() === "lemmy"); + + //console.log("---------------\n" + post.title + ": " + synPixelfed.length); %>