structured data unparsable at google
This commit is contained in:
parent
0cc0da256d
commit
a4758b6c75
|
@ -50,8 +50,8 @@
|
||||||
"@id": {{ .Site.BaseURL }}
|
"@id": {{ .Site.BaseURL }}
|
||||||
},
|
},
|
||||||
"articleSection" : "{{ .Section }}",
|
"articleSection" : "{{ .Section }}",
|
||||||
"name" : "{{ .Title }}",
|
"name" : {{ .Title }},
|
||||||
"headline" : "{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}",
|
"headline" : {{ .Title }},
|
||||||
"description" : {{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }},
|
"description" : {{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }},
|
||||||
"inLanguage" : "{{ .Site.LanguageCode }}",
|
"inLanguage" : "{{ .Site.LanguageCode }}",
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
|
@ -87,13 +87,13 @@
|
||||||
"url" : {{ .Permalink }},
|
"url" : {{ .Permalink }},
|
||||||
"wordCount" : "{{ .WordCount }}",
|
"wordCount" : "{{ .WordCount }}",
|
||||||
{{ if .Keywords }}
|
{{ if .Keywords }}
|
||||||
"keywords" : [ {{ range .Keywords }}"{{ . }}",{{ end }}"{{ .Title }}" ],
|
"keywords" : [ {{ range .Keywords }}{{ . }},{{ end }}{{ .Title }} ],
|
||||||
"genre" : [ {{ range .Keywords }}"{{ . }}",{{ end }}"{{ .Title }}" ]
|
"genre" : [ {{ range .Keywords }}{{ . }},{{ end }}{{ .Title }} ]
|
||||||
{{ else if .Params.tags }}
|
{{ else if .Params.tags }}
|
||||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}" ],
|
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}{{ . }},{{ end }}{{ end }}{{ .Title }} ],
|
||||||
"genre" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}" ]
|
"genre" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}{{ . }},{{ end }}{{ end }}{{ .Title }} ]
|
||||||
{{ else }}
|
{{ else }}
|
||||||
"keywords": [ "{{ .Title }}" ]
|
"keywords": [ {{ .Title }} ]
|
||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue