Permalink
Browse files

Refactor

Now only uses author.json if present otherwise continues with existing behaviour
  • Loading branch information...
davidsivocha committed Sep 13, 2017
1 parent b6eeb70 commit 38d45b1426fa8dac367e557354f032a4aa778b91
Showing with 4 additions and 2 deletions.
  1. +4 −2 examples/blog/templates/feed.jade
@@ -21,7 +21,9 @@ rss(version='2.0',
pubDate= article.rfc822date
guid(isPermaLink='true')= permalink
- var author = contents.authors[article.metadata.author + '.json'];
- if (!author) {author = { metadata: {name: null}} };
author= author.metadata.name
if author
author= author.metadata.name
else
author= article.author
//- passing locals.url resolves all relative urls to absolute
description= article.getHtml(locals.url)

0 comments on commit 38d45b1

Please sign in to comment.