diff options
author | zzossig <52706977+zzossig@users.noreply.github.com> | 2020-06-30 16:10:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 16:10:37 +0300 |
commit | 5364fc098cea54aae0db0f0090e92840f7163e15 (patch) | |
tree | 2234a93eee1831c3b20fbed62c1605a9acb1efac /layouts | |
parent | 80f1143d9bffc4a7d705cb79a2a12983bc92ee50 (diff) | |
parent | 6af870a034a6763bf677559450c66f209546578d (diff) |
Merge pull request #295 from rahatzamancse/fix-empty-string-json
Fixed empty string parse error in meta_json_id.html
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head/meta_json_ld.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head/meta_json_ld.html b/layouts/partials/head/meta_json_ld.html index c2851c6..41d3d67 100644 --- a/layouts/partials/head/meta_json_ld.html +++ b/layouts/partials/head/meta_json_ld.html @@ -7,7 +7,7 @@ "datePublished": {{ .Date.Format "2006-01-02T15:04:05Z07:00" }}, "dateModified": {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}, "url" : {{ .Permalink }}, - "description": {{ with (.Description | default (replaceRE "\n" " " (.Summary | truncate 170))) }}{{ . }}{{ end }}, + "description": "{{ with (.Description | default (replaceRE "\n" " " (.Summary | truncate 170))) }}{{ . }}{{ end }}", {{ with .Params.tags -}} "keywords": {{ . }}, {{ end -}} @@ -16,7 +16,7 @@ "url" : {{ .Permalink }}, "name": {{ .Title }}, {{ with $.Param "description" -}} - "description": {{ . }}, + "description": "{{ . }}", {{ end -}} {{ end -}} {{ with $.Param "image" -}} |