mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -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 }}",
|
"image": "{{ .Permalink }}",
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
{{ with .Date -}}
|
||||||
"datePublished": "{{ .Date | safeHTML }}",
|
"copyrightYear" : "{{ .Format "2006" }}",
|
||||||
"dateModified" : "{{ .Lastmod | safeHTML }}",
|
"datePublished": "{{ . | safeHTML }}",
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Lastmod }}
|
||||||
|
"dateModified" : "{{ . | safeHTML }}",
|
||||||
|
{{ end }}
|
||||||
"url" : "{{ .Permalink }}",
|
"url" : "{{ .Permalink }}",
|
||||||
"wordCount" : "{{ .WordCount }}",
|
"wordCount" : "{{ .WordCount }}",
|
||||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} "Blog" ]
|
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} "Blog" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user