structured data update na https://search.google.com/structured-data/testing-tool
This commit is contained in:
parent
aa3bba9546
commit
16c2c56aec
|
@ -6,6 +6,8 @@ disqusShortname = ""
|
||||||
googleAnalytics = "UA-122825031-1"
|
googleAnalytics = "UA-122825031-1"
|
||||||
publishDir = "docs"
|
publishDir = "docs"
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
# for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/
|
||||||
|
enableGitInfo = true
|
||||||
|
|
||||||
[Author]
|
[Author]
|
||||||
name = "Wouter Groeneveld"
|
name = "Wouter Groeneveld"
|
||||||
|
|
|
@ -74,13 +74,15 @@
|
||||||
"copyrightHolder" : "{{ .Site.Author.name }}",
|
"copyrightHolder" : "{{ .Site.Author.name }}",
|
||||||
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
||||||
"datePublished": "{{ .Date }}",
|
"datePublished": "{{ .Date }}",
|
||||||
"dateModified" : "{{ .Date }}",
|
"dateModified" : "{{ .Lastmod }}",
|
||||||
"url" : "{{ .Permalink }}",
|
"url" : "{{ .Permalink }}",
|
||||||
"wordCount" : "{{ .WordCount }}",
|
"wordCount" : "{{ .WordCount }}",
|
||||||
{{ if .Keywords }}
|
{{ if .Keywords }}
|
||||||
"keywords" : [ {{ range .Keywords }}"{{ . }}",{{ end }}"{{ .Title }}" ]
|
"keywords" : [ {{ 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 }}" ]
|
||||||
|
{{ else }}
|
||||||
|
"keywords": [ "{{ .Title }}" ]
|
||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue