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