structured language: param mogelijk maken + teaching default in nl

This commit is contained in:
Wouter Groeneveld 2018-07-30 13:33:06 +02:00
parent 8a3d30d1de
commit ceb4f1dc8d
1 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,15 @@
"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 isset .Params "language" }}
"inLanguage" : "{{ .Params.language }}",
{{ else if eq "essays" .Section }}
"inLanguage" : "nl-BE",
{{ else if eq "teaching" .Section }}
"inLanguage" : "nl-BE",
{{ else }}
"inLanguage" : "en-US",
{{ end }}
{{ if .Params.bigimg }}
"image": "{{.Site.BaseURL}}{{ .Params.bigimg }}",
{{ else }}