mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Only add published date to seo_schema if set
This commit is contained in:
parent
f5c9e6926a
commit
0893c99f97
@ -40,9 +40,13 @@
|
||||
"image": "{{ .Permalink }}",
|
||||
{{ end }}
|
||||
|
||||
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
||||
"datePublished": "{{ .Date | safeHTML }}",
|
||||
"dateModified" : "{{ .Lastmod | safeHTML }}",
|
||||
{{ with .Date -}}
|
||||
"copyrightYear" : "{{ .Format "2006" }}",
|
||||
"datePublished": "{{ . | safeHTML }}",
|
||||
{{ end }}
|
||||
{{ with .Lastmod }}
|
||||
"dateModified" : "{{ . | safeHTML }}",
|
||||
{{ end }}
|
||||
"url" : "{{ .Permalink }}",
|
||||
"wordCount" : "{{ .WordCount }}",
|
||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} "Blog" ]
|
||||
|
Loading…
Reference in New Issue
Block a user