Skip to content

Commit

Permalink
Fix site title and description for page's with a hero image assigned …
Browse files Browse the repository at this point in the history
…with `page.image`

Close #322
  • Loading branch information
mmistakes committed Jan 8, 2019
1 parent caf618a commit cea27df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion _includes/masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<img src="{{ site.logo | relative_url }}" class="site-logo-img animated fadeInDown" alt="{{ site.title }}">
</a>
{% endif %}
{% unless page.image.path %}
{% assign page_image = page.image.path | default: page.image %}
{% unless page_image %}
<h1 class="site-title animated fadeIn"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
<p class="site-description animated fadeIn" itemprop="description">{{ site.description }}</p>
{% endunless %}
Expand Down

0 comments on commit cea27df

Please sign in to comment.