Skip to content

Commit

Permalink
Add ability to customize atom:icon
Browse files Browse the repository at this point in the history
  • Loading branch information
zbicin committed Dec 17, 2018
1 parent 775c6aa commit 9d42295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module.exports = function(locals) {
if (url[url.length - 1] !== '/') url += '/';

var icon;
if (config.email) icon = gravatar(config.email);
if (feedConfig.icon) icon = url + feedConfig.icon;
else if (config.email) icon = gravatar(config.email);

var xml = template.render({
config: config,
Expand Down

0 comments on commit 9d42295

Please sign in to comment.