fixes structured data door https://search.google.com/structured-data/testing-tool te halen
This commit is contained in:
parent
8bf59c6360
commit
8a3d30d1de
|
@ -8,6 +8,8 @@ googleAnalytics = "UA-45748221-1"
|
|||
publishDir = "docs"
|
||||
enableEmoji = true
|
||||
enableRobotsTXT = true
|
||||
# for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/
|
||||
enableGitInfo = true
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
|
|
|
@ -49,16 +49,22 @@
|
|||
},
|
||||
"articleSection" : "{{ .Section }}",
|
||||
"name" : "{{ .Title }}",
|
||||
"headline" : "{{ .Params.subtitle }}",
|
||||
{{ if .Params.subtitle }}
|
||||
"headline" : "{{ .Params.subtitle }}",
|
||||
{{ else }}
|
||||
"headline" : "{{ .Title }}",
|
||||
{{ end }}
|
||||
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
|
||||
"inLanguage" : "{{ if eq "essays" .Section }}nl-BE{{ else }}en-US{{ end }}",
|
||||
{{ if .Params.bigimg }}
|
||||
"image": "{{.Site.BaseURL}}{{ .Params.bigimg }}",
|
||||
{{ else }}
|
||||
"image": "{{.Site.BaseURL}}img/avatar-icon.png",
|
||||
{{ end }}
|
||||
"author" : {
|
||||
"@type": "Person",
|
||||
"name": "{{ .Site.Author.name }}"
|
||||
},
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ .Site.Title }}",
|
||||
|
@ -66,12 +72,12 @@
|
|||
"@type": "ImageObject",
|
||||
"url": "{{.Site.BaseURL}}img/avatar-icon.png"
|
||||
}
|
||||
},
|
||||
},
|
||||
"accountablePerson" : "{{ .Site.Author.name }}",
|
||||
"copyrightHolder" : "{{ .Site.Author.name }}",
|
||||
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
||||
"datePublished": "{{ .Date }}",
|
||||
"dateModified" : "{{ .Date }}",
|
||||
"datePublished": "{{ if isset .Params "date" }}{{ .Date }}{{ else }}{{ .Lastmod }}{{ end }}",
|
||||
"dateModified" : "{{ .Lastmod }}",
|
||||
"url" : "{{ .Permalink }}",
|
||||
"wordCount" : "{{ .WordCount }}",
|
||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}", "{{ .Section }}" ]
|
||||
|
|
Loading…
Reference in New Issue