This commit is contained in:
Wouter Groeneveld 2018-07-30 13:27:15 +02:00
parent 8bf59c6360
commit 8a3d30d1de
2 changed files with 13 additions and 5 deletions

View File

@ -8,6 +8,8 @@ googleAnalytics = "UA-45748221-1"
publishDir = "docs" publishDir = "docs"
enableEmoji = true enableEmoji = true
enableRobotsTXT = true enableRobotsTXT = true
# for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/
enableGitInfo = true
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"

View File

@ -49,16 +49,22 @@
}, },
"articleSection" : "{{ .Section }}", "articleSection" : "{{ .Section }}",
"name" : "{{ .Title }}", "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 }}", "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"inLanguage" : "{{ if eq "essays" .Section }}nl-BE{{ else }}en-US{{ end }}", "inLanguage" : "{{ if eq "essays" .Section }}nl-BE{{ else }}en-US{{ end }}",
{{ if .Params.bigimg }} {{ if .Params.bigimg }}
"image": "{{.Site.BaseURL}}{{ .Params.bigimg }}", "image": "{{.Site.BaseURL}}{{ .Params.bigimg }}",
{{ else }}
"image": "{{.Site.BaseURL}}img/avatar-icon.png",
{{ end }} {{ end }}
"author" : { "author" : {
"@type": "Person", "@type": "Person",
"name": "{{ .Site.Author.name }}" "name": "{{ .Site.Author.name }}"
}, },
"publisher": { "publisher": {
"@type": "Organization", "@type": "Organization",
"name": "{{ .Site.Title }}", "name": "{{ .Site.Title }}",
@ -66,12 +72,12 @@
"@type": "ImageObject", "@type": "ImageObject",
"url": "{{.Site.BaseURL}}img/avatar-icon.png" "url": "{{.Site.BaseURL}}img/avatar-icon.png"
} }
}, },
"accountablePerson" : "{{ .Site.Author.name }}", "accountablePerson" : "{{ .Site.Author.name }}",
"copyrightHolder" : "{{ .Site.Author.name }}", "copyrightHolder" : "{{ .Site.Author.name }}",
"copyrightYear" : "{{ .Date.Format "2006" }}", "copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date }}", "datePublished": "{{ if isset .Params "date" }}{{ .Date }}{{ else }}{{ .Lastmod }}{{ end }}",
"dateModified" : "{{ .Date }}", "dateModified" : "{{ .Lastmod }}",
"url" : "{{ .Permalink }}", "url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}", "wordCount" : "{{ .WordCount }}",
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}", "{{ .Section }}" ] "keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}", "{{ .Section }}" ]