_includes/author.html in jekyll-dash-1.3.4 vs _includes/author.html in jekyll-dash-1.3.5

- old
+ new

@@ -1,6 +1,19 @@ <div class="author-box"> -{% if site.plugins contains "liquid-md5" %} -<img src="https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256" class="author-avatar" /> -{% endif %} + {% if site.avatar_source == "github" and site.github_username %} + {% capture avatar_image %} + https://github.com/{{ site.github_username }}.png + {% endcapture %} + {% elsif site.avatar_source == "local" and site.avatar_path %} + {% capture avatar_image %} + {{site.avatar_path}} + {% endcapture %} + {% elsif site.plugins contains "liquid-md5" %} + {% capture avatar_image %} + https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256 + {% endcapture %} + {% endif %} + {% if avatar_image %} + <img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" /> + {% endif %} {{ site.description }} </div>