From 7a29dd9d436c5cee7ee6ae903cba5a4345773c8e Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Tue, 16 Jan 2024 22:26:22 -0800 Subject: [PATCH] Fallback to github image if gravatar is nil Updates the post layout to fallback to the author's github profile image if their gravatar is not set. Fixes #476 --- _layouts/post.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_layouts/post.html b/_layouts/post.html index ebde06e4f..51bc4684f 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -13,6 +13,8 @@

{{ page.title }}

{% if author.gravatar %} {{ author.name }} + {% elsif author.github %} + {{ author.name }} {% else %} {{ author.name }} {% endif %}