File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Remove deprecated ` base_path ` include helper.
6
6
7
+ ### Bug Fixes
8
+
9
+ - Properly apply ` relative_url ` filter to internal links in header overlay ` actions ` array.
10
+
7
11
## [ 4.13.0] ( https://github.com/mmistakes/minimal-mistakes/releases/tag/4.13.0 )
8
12
9
13
### Enhancements
Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ <h1 id="page-title" class="page__title" itemprop="headline">
54
54
{% if page.header.actions %}
55
55
< p >
56
56
{% for action in page.header.actions %}
57
- < a href ="{{ action.url }} " class ="btn btn--light-outline btn--large "> {{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</ a >
57
+ {% if action.url contains "://" %}
58
+ {% assign url = action.url %}
59
+ {% else %}
60
+ {% assign url = action.url | relative_url %}
61
+ {% endif %}
62
+ < a href ="{{ url }} " class ="btn btn--light-outline btn--large "> {{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</ a >
58
63
{% endfor %}
59
64
{% endif %}
60
65
</ div >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ permalink: /docs/history/
4
4
excerpt : " Change log of enhancements and bug fixes made to the theme."
5
5
sidebar :
6
6
nav : docs
7
- last_modified_at : 2018-09-11T09:58:11 -04:00
7
+ last_modified_at : 2018-09-11T11:42:10 -04:00
8
8
toc : true
9
9
---
10
10
@@ -14,6 +14,10 @@ toc: true
14
14
15
15
- Remove deprecated ` base_path ` include helper.
16
16
17
+ ### Bug Fixes
18
+
19
+ - Properly apply ` relative_url ` filter to internal links in header overlay ` actions ` array.
20
+
17
21
## [ 4.13.0] ( https://github.com/mmistakes/minimal-mistakes/releases/tag/4.13.0 )
18
22
19
23
### Enhancements
Original file line number Diff line number Diff line change 7
7
overlay_color : " #000"
8
8
overlay_filter : " 0.5"
9
9
overlay_image : /assets/images/unsplash-image-1.jpg
10
- cta_label : " Download"
11
10
actions :
12
11
- label : " Learn More"
13
- url : " https://github.com/mmistakes/minimal-mistakes /"
12
+ url : " /terms /"
14
13
caption : " Photo credit: [**Unsplash**](https://unsplash.com)"
15
14
excerpt : " Bacon ipsum dolor sit amet salami ham hock ham, hamburger corned beef short ribs kielbasa biltong t-bone drumstick tri-tip tail sirloin pork chop."
16
15
intro :
You can’t perform that action at this time.
0 commit comments