Merge pull request #295 from rahatzamancse/fix-empty-string-json

Fixed empty string parse error in meta_json_id.html
This commit is contained in:
zzossig 2020-06-30 22:10:37 +09:00 committed by GitHub
commit 5364fc098c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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" -}}