From 1e4f45dc9758e7bd76ee6df599ce816ccbb3ed00 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 13 Jan 2019 19:55:00 -0500 Subject: [PATCH 1/5] Add logo and title customization to the masthead --- _config.yml | 2 ++ _includes/masthead.html | 9 ++++++++- _sass/minimal-mistakes/_masthead.scss | 4 ++++ _sass/minimal-mistakes/_navigation.scss | 5 +++++ test/_config.yml | 2 ++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index ae48ca315f47..9c8f4ed14f42 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,8 @@ url : # the base hostname & protocol for your site e.g. "ht baseurl : # the subpath of your site, e.g. "/blog" repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" +logo : # path of logo image to display in the masthead +masthead_title : # overrides the website title displayed in the masthead, use " " for no title # breadcrumbs : false # true, false (default) words_per_minute : 200 comments: diff --git a/_includes/masthead.html b/_includes/masthead.html index f36d2c6ece8c..f3ee59e9d32c 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -1,8 +1,15 @@ +{% if site.logo contains "://" %} + {% capture logo_path %}{{ site.logo }}{% endcapture %} +{% else %} + {% capture logo_path %}{{ site.logo | relative_url }}{% endcapture %} +{% endif %} +