Skip to content

Instantly share code, notes, and snippets.

@M0nica
Last active October 7, 2017 15:27
Show Gist options
  • Save M0nica/11c8db6f267e94845f96c1afcf170769 to your computer and use it in GitHub Desktop.
Save M0nica/11c8db6f267e94845f96c1afcf170769 to your computer and use it in GitHub Desktop.
Example template for including author data in Jekyll
<hr>
<span>
<div>
# include author image if there is an author image
{% if author.image %}
<img src="{{author.image}}" class="author-img">
{% endif %}
<div>
<h3> {{author.name}} &nbsp;
# include link to author's twitter if they have provided a twitter account
{% if author.twitter %}
<a href="{{author.twitter}}" class="icon fa-twitter"><span class="label">Twitter</span></a>
{% endif %}
</h3>
</div>
</div>
{{ author.bio }}
</span>
<br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment