diff --git a/CHANGELOG.md b/CHANGELOG.md index ed4d99321cdc..fd9529b544b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Enhancements +- Add logo and title customization to the masthead. [#2026](https://github.com/mmistakes/minimal-mistakes/pull/2026) - Add support to customize `issue-term` for utterances comment provider. [#2022](https://github.com/mmistakes/minimal-mistakes/pull/2022) - Allow custom canonical url on a page-by-page basis. [#2021](https://github.com/mmistakes/minimal-mistakes/pull/2021) - Update table of contents navigation based on scroll position to indicate which link is currently active in the viewport. [#2020](https://github.com/mmistakes/minimal-mistakes/pull/2020) diff --git a/_config.yml b/_config.yml index ae48ca315f47..689c38af14dd 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, e.g. "/assets/images/88x88.png" +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 %} +