From 9a03c1512fa2eabc64cd865b9ac0af16d50833a2 Mon Sep 17 00:00:00 2001 From: Thayer Luscian Date: Wed, 17 Jan 2018 19:49:52 -0500 Subject: [PATCH 1/2] Add support for custom favicon --- _config.yml | 1 + _layouts/default.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index f535f1f..632cbd3 100755 --- a/_config.yml +++ b/_config.yml @@ -60,6 +60,7 @@ defaults: encoding: utf-8 # Make sure the encoding is right title: "Garth" # Site name or title logo: "/assets/logo.svg" # Site logo +# favicon: "/favicon.ico" # Uncomment to add custom favicon, or leave as is to use site logo description: "A stupidly simple theme for Jekyll, using the official Jekyll theme implementation" # Site description and default description url: "https://garth.darn.es" # Site url baseurl: "" diff --git a/_layouts/default.html b/_layouts/default.html index 98b21b8..a449351 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -9,8 +9,12 @@ {{ page.title }} - {{ site.title }} {% endif %} - + + {% if site.favicon %} + + {% else %} + {% endif %} From e8de80b9c7884625362669a37b35b1443d4d453c Mon Sep 17 00:00:00 2001 From: David Darnes Date: Thu, 18 Jan 2018 09:13:01 +0000 Subject: [PATCH 2/2] Just a little formatting for niceness --- _layouts/default.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index a449351..22a3e23 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,11 +10,13 @@ {% endif %} + {% if site.favicon %} - + {% else %} - + {% endif %} +