Skip to content

Commit

Permalink
Fill author element with Twitter handle
Browse files Browse the repository at this point in the history
  • Loading branch information
pingu8007 committed Feb 17, 2020
1 parent 9cda8c4 commit 215022e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/jekyll-feed/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

<author>
<name>{{ post_author_name | default: "" | xml_escape }}</name>
Expand Down

0 comments on commit 215022e

Please sign in to comment.