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
|
@ -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…
Add table
Add a link
Reference in a new issue