This commit is contained in:
Wouter Groeneveld 2018-07-30 13:36:34 +02:00
parent aa3bba9546
commit 16c2c56aec
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@ disqusShortname = ""
googleAnalytics = "UA-122825031-1"
publishDir = "docs"
enableEmoji = true
# for .Lastmod to work with .GitInfo: --enableGitInfo https://gohugo.io/variables/git/
enableGitInfo = true
[Author]
name = "Wouter Groeneveld"

View File

@ -74,13 +74,15 @@
"copyrightHolder" : "{{ .Site.Author.name }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date }}",
"dateModified" : "{{ .Date }}",
"dateModified" : "{{ .Lastmod }}",
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
{{ if .Keywords }}
"keywords" : [ {{ range .Keywords }}"{{ . }}",{{ end }}"{{ .Title }}" ]
{{ else if .Params.tags }}
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}" ]
{{ else }}
"keywords": [ "{{ .Title }}" ]
{{ end }}
}
</script>