Remove spaces before `:`.

This commit is contained in:
XhmikosR 2016-03-01 18:29:04 +02:00
parent 41f9030372
commit dae68cb01e
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)