diff --git a/lib/jekyll-feed/feed.xml b/lib/jekyll-feed/feed.xml index 4d4fd16d..cb437660 100644 --- a/lib/jekyll-feed/feed.xml +++ b/lib/jekyll-feed/feed.xml @@ -59,7 +59,11 @@ {% assign post_author = site.data.authors[post_author] | default: post_author %} {% assign post_author_email = post_author.email | default: nil %} {% assign post_author_uri = post_author.uri | default: nil %} - {% assign post_author_name = post_author.name | default: post_author %} + {% assign post_author_twitter = post_author.twitter | default: nil %} + {% if post_author_twitter %} + {% assign post_author_twitter = post_author.twitter | prepend: "@" %} + {% endif %} + {% assign post_author_name = post_author.name | default: post_author_twitter | default: post_author %} {{ post_author_name | default: "" | xml_escape }}