change json frontmatter delimeter to the ironic ;;; to avoid interfering with mustache {{{
This commit is contained in:
parent
d79acc7a78
commit
dcdbf3e110
|
@ -1,7 +1,7 @@
|
||||||
{{{
|
;;;
|
||||||
"layout": false,
|
"layout": false,
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
}}}
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= data.page.title %></h1>
|
||||||
<?php echo "sup"; ?>
|
<?php echo "sup"; ?>
|
|
@ -1,6 +1,6 @@
|
||||||
{{{
|
;;;
|
||||||
"layout": false,
|
"layout": false,
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
}}}
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= data.page.title %></h1>
|
|
@ -1,6 +1,6 @@
|
||||||
{{{
|
;;;
|
||||||
"layout": false,
|
"layout": false,
|
||||||
"title": "This is the title"
|
"title": "This is the title"
|
||||||
}}}
|
;;;
|
||||||
|
|
||||||
<h1><%= data.page.title %></h1>
|
<h1><%= data.page.title %></h1>
|
|
@ -104,7 +104,7 @@ module Middleman::CoreExtensions
|
||||||
content = content.sub(json_regex, "")
|
content = content.sub(json_regex, "")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
json = ($1+$2).sub("{{{", "{").sub("}}}", "}")
|
json = ($1+$2).sub(";;;", "{").sub(";;;", "}")
|
||||||
data = ActiveSupport::JSON.decode(json)
|
data = ActiveSupport::JSON.decode(json)
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "JSON Exception: #{e.message}"
|
puts "JSON Exception: #{e.message}"
|
||||||
|
|
Loading…
Reference in a new issue