Skip to content

Commit b0e9c10

Browse files
committed
Merge branch 'release/3.1.3'
2 parents 2e67f66 + 0103da2 commit b0e9c10

File tree

5 files changed

+36
-21
lines changed

5 files changed

+36
-21
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## [3.1.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.3)
2+
3+
### Enhancements
4+
5+
- Improve `site.locale` documentation [#284](https://github.com/mmistakes/minimal-mistakes/issues/284)
6+
- Remove ProTip note about protocol-less `site.url` as it is an anti-pattern [#288](https://github.com/mmistakes/minimal-mistakes/issues/288)
7+
8+
### Bug Fixes
9+
10+
- Fix `og_image` URL in seo.html [#277](https://github.com/mmistakes/minimal-mistakes/issues/277)
11+
- Fix `author_profile` toggle when assigned in a `_layout` [#285](https://github.com/mmistakes/minimal-mistakes/issues/285)
12+
- Fix typo in `build:all` npm script [#283](https://github.com/mmistakes/minimal-mistakes/pull/283)
13+
- Fix URL typo documentation [#287](https://github.com/mmistakes/minimal-mistakes/issues/287)
14+
- 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)
15+
116
## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2)
217

318
### Enhancement

_includes/group-by-array

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@
2020
{% assign __names = __names | sort %}
2121
{% for name in __names | sort %}
2222

23-
<!-- If not equal to previous then it must be unique as sorted -->
24-
{% unless name == previous %}
23+
<!-- If not equal to previous then it must be unique as sorted -->
24+
{% unless name == previous %}
2525

26-
<!-- Push to group_names -->
27-
{% assign group_names = group_names | push: name %}
28-
{% endunless %}
26+
<!-- Push to group_names -->
27+
{% assign group_names = group_names | push: name %}
28+
{% endunless %}
2929

30-
{% assign previous = name %}
30+
{% assign previous = name %}
3131
{% endfor %}
3232

3333

3434
<!-- group_items -->
3535
{% for name in group_names %}
3636

37-
<!-- Collect if contains -->
38-
{% assign __item = __empty_array %}
39-
{% for __element in include.collection %}
40-
{% if __element[include.field] contains name %}
41-
{% assign __item = __item | push: __element %}
42-
{% endif %}
43-
{% endfor %}
44-
45-
<!-- Push to group_items -->
46-
{% assign group_items = group_items | push: __item %}
37+
<!-- Collect if contains -->
38+
{% assign __item = __empty_array %}
39+
{% for __element in include.collection %}
40+
{% if __element[include.field] contains name %}
41+
{% assign __item = __item | push: __element %}
42+
{% endif %}
4743
{% endfor %}
44+
45+
<!-- Push to group_items -->
46+
{% assign group_items = group_items | push: __item %}
47+
{% endfor %}

_includes/seo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
2626
{% endif %}
2727

28-
{% assign seo_author = page.author | default: page.authors[0] | default: site.author %}
28+
{% assign seo_author = page.author | default: page.author[0] | default: site.author[0] %}
2929
{% if seo_author %}
3030
{% if seo_author.twitter %}
3131
{% assign seo_author_twitter = seo_author.twitter %}
@@ -104,7 +104,7 @@
104104
"@context": "http://schema.org",
105105
"@type": "Organization",
106106
"url": {{ seo_url | jsonify }},
107-
"logo": {{ site.og_image | prepend: "/" | prepend: seo_url | jsonify }}
107+
"logo": {{ site.og_image | prepend: "/images/" | prepend: base_path | jsonify }}
108108
}
109109
</script>
110110
{% endif %}

_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% include base_path %}
22

3-
{% if page.author_profile or page.sidebar %}
3+
{% if page.author_profile or layout.author_profile or page.sidebar %}
44
<div class="sidebar sticky">
5-
{% if page.author_profile %}{% include author-profile.html %}{% endif %}
5+
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
66
{% if page.sidebar %}
77
{% for s in page.sidebar %}
88
{% if s.image %}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"watch:all": "npm-run-all --parallel watch:css watch:js",
3838
"build:css": "npm run scss && npm run autoprefixer",
3939
"build:js": "npm run uglify",
40-
"build:all": "npm run build:css && build:js"
40+
"build:all": "npm run build:css && npm run build:js"
4141
}
4242
}

0 commit comments

Comments
 (0)