Merge pull request #62 from XhmikosR/patch-2

Remove spaces before `:`.
This commit is contained in:
Ben Balter 2016-03-01 11:46:04 -05:00
commit c25345339b
2 changed files with 7 additions and 7 deletions

View File

@ -154,14 +154,14 @@
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@context": "http://schema.org",
{% if seo_type %}
"@type" : {{ seo_type | jsonify }},
"@type": {{ seo_type | jsonify }},
{% endif %}
{% if seo_name %}
"name" : {{ seo_name | jsonify }},
"name": {{ seo_name | jsonify }},
{% endif %}
{% if seo_page_title %}
@ -185,10 +185,10 @@
{% endif %}
{% if seo_links %}
"sameAs" : {{ seo_links | jsonify }},
"sameAs": {{ seo_links | jsonify }},
{% endif %}
"url" : "{{ page.url | prepend: seo_url | replace:'/index.html','/' }}"
"url": "{{ page.url | prepend: seo_url | replace:'/index.html','/' }}"
}
</script>

View File

@ -183,8 +183,8 @@ EOS
it 'minifies JSON-LD' do
expected = <<-EOS
{
"@context" : "http://schema.org",
"@type" : "BlogPosting",
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "post",
EOS
expect(output).to match(expected)