I just upgraded to version 0.17.
The following code work in 0.15 but gives me an error with 0.17
Code:
{{if in .Page.Permalink “xap97”}}{{index .Page.Site.Params.xap97 (.Get 0)}}
{{else if in .Page.Permalink “xap100”}}{{index .Page.Site.Params.xap100 (.Get 0)}}
{{else if in .Page.Permalink “xap101”}}{{index .Page.Site.Params.xap101 (.Get 0)}}
{{else if in .Page.Permalink “xap102”}}{{index .Page.Site.Params.xap102 (.Get 0)}}
{{else if in .Page.Permalink “xap102”}}{{index .Page.Site.Params.xap102 (.Get 0)}}
{{else if in .Page.Permalink “xap110”}}{{index .Page.Site.Params.xap110 (.Get 0)}}
{{else}}{{index .Page.Site.Params.xap120 (.Get 0)}}{{end}}
Here is the error I am getting
ERROR: 2016/10/13 15:47:34 shortcode.go:586: error processing shortcode shortcodes/version.html
ERR: template: shortcodes/version.html:7:10: executing “shortcodes/version.html” at <index .Page.Site.Par…>: error calling index: value is nil; should be of type string
Any idea whats going on here ?