diff --git a/CHANGELOG.md b/CHANGELOG.md index 733173484f7..7ce97e517f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Add Spanish translations to `text.yml`. [#300](https://github.com/mmistakes/so-simple-theme/pull/300) ### Fixed +- Fix site title and description for page's with a hero image assigned with `page.image`. [#322](https://github.com/mmistakes/so-simple-theme/issues/322) - Correct stylesheet path in documentation. [#309](https://github.com/mmistakes/so-simple-theme/pull/309) - Clarify where to customize SCSS variables in `/assets/css/main.scss`. [#293](https://github.com/mmistakes/so-simple-theme/pull/293) diff --git a/_includes/masthead.html b/_includes/masthead.html index 917fba421be..7700235bce0 100644 --- a/_includes/masthead.html +++ b/_includes/masthead.html @@ -5,7 +5,8 @@ {{ site.title }} {% endif %} - {% unless page.image.path %} + {% assign page_image = page.image.path | default: page.image %} + {% unless page_image %}

{{ site.title }}

{{ site.description }}

{% endunless %}