Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 315e343

Browse files
committed
fix button target shortcode
1 parent 0f3df6d commit 315e343

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

admin/app/editor/shortcodes/button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ CMS.registerEditorComponent({
1111
url,
1212
blank
1313
],
14-
pattern: /{{< button text="(.*)" url="(.*)" blank="(.*)" >}}/,
14+
pattern: /{{< button text="(.*)" url="(.*)" blank="(true|false)" >}}/,
1515
fromBlock: function (match) {
1616
return {
1717
text: match[1],
1818
url: match[2],
19-
blank: match[3]
19+
blank: (match[3] === "true")
2020
};
2121
},
2222
toBlock: function (obj) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hugolify-netlify-cms",
3-
"version": "1.1.10",
3+
"version": "1.1.11",
44
"homepage": "https://www.hugolify.io",
55
"repository": "https://github.com/hugolify/hugolify-netlify-cms",
66
"bugs": {

0 commit comments

Comments
 (0)