diff --git a/CHANGELOG.md b/CHANGELOG.md index ffb2e0f5..90e4a95f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## [3.1.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.3) + +### Enhancements + +- Improve `site.locale` documentation [#284](https://github.com/mmistakes/minimal-mistakes/issues/284) +- Remove ProTip note about protocol-less `site.url` as it is an anti-pattern [#288](https://github.com/mmistakes/minimal-mistakes/issues/288) + +### Bug Fixes + +- Fix `og_image` URL in seo.html [#277](https://github.com/mmistakes/minimal-mistakes/issues/277) +- Fix `author_profile` toggle when assigned in a `_layout` [#285](https://github.com/mmistakes/minimal-mistakes/issues/285) +- Fix typo in `build:all` npm script [#283](https://github.com/mmistakes/minimal-mistakes/pull/283) +- Fix URL typo documentation [#287](https://github.com/mmistakes/minimal-mistakes/issues/287) +- SEO author bug. If `twitter.username` is set and `author.twitter` is `nil` bad things happen. [#289](https://github.com/mmistakes/minimal-mistakes/issues/289) + ## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2) ### Enhancement diff --git a/_includes/group-by-array b/_includes/group-by-array index 33af7555..251302c7 100644 --- a/_includes/group-by-array +++ b/_includes/group-by-array @@ -20,28 +20,28 @@ {% assign __names = __names | sort %} {% for name in __names | sort %} - - {% unless name == previous %} + +{% unless name == previous %} - - {% assign group_names = group_names | push: name %} - {% endunless %} + +{% assign group_names = group_names | push: name %} +{% endunless %} - {% assign previous = name %} +{% assign previous = name %} {% endfor %} {% for name in group_names %} - - {% assign __item = __empty_array %} - {% for __element in include.collection %} - {% if __element[include.field] contains name %} - {% assign __item = __item | push: __element %} - {% endif %} - {% endfor %} - - - {% assign group_items = group_items | push: __item %} + +{% assign __item = __empty_array %} +{% for __element in include.collection %} +{% if __element[include.field] contains name %} +{% assign __item = __item | push: __element %} +{% endif %} {% endfor %} + + +{% assign group_items = group_items | push: __item %} +{% endfor %} \ No newline at end of file diff --git a/_includes/seo.html b/_includes/seo.html index 58f499b5..f914ce36 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -25,7 +25,7 @@ {% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %} {% endif %} -{% assign seo_author = page.author | default: page.authors[0] | default: site.author %} +{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %} {% if seo_author %} {% if seo_author.twitter %} {% assign seo_author_twitter = seo_author.twitter %} @@ -104,7 +104,7 @@ "@context": "http://schema.org", "@type": "Organization", "url": {{ seo_url | jsonify }}, - "logo": {{ site.og_image | prepend: "/" | prepend: seo_url | jsonify }} + "logo": {{ site.og_image | prepend: "/images/" | prepend: base_path | jsonify }} } {% endif %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index dbb7aae4..445dd207 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,8 +1,8 @@ {% include base_path %} -{% if page.author_profile or page.sidebar %} +{% if page.author_profile or layout.author_profile or page.sidebar %}