From 8bc043aa135786fbc7e57adb3394fc580f7714a9 Mon Sep 17 00:00:00 2001 From: LeNPaul Date: Fri, 12 May 2017 22:38:43 -0400 Subject: [PATCH] Add social sharing code --- _layouts/post.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index 8b400e915e..504fc94836 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -22,7 +22,12 @@

{% when '3' or '23' %}{{ d }}rd {% else %}{{ d }}th{% endcase %}, {{ page.date | date: "%Y" }} - by {{ page.author }} + by + {% if page.author %} + {{ page.author }} + {% else %} + {{ site.data.settings.author.name }} + {% endif %} {% include social-sharing.html %} {% include related-posts.html %}