Bad character U+002D '-'

How can I get data from Param with dash?
My code is
{{ $category := .Params.cases-category }}
And I have an error
bad character U+002D '-'
How can I fix it?

Could you use another character, like “_” (underscore)?

Yes, but it difficult now :wink: Today we are having a big project.

It Is difficult because I use it in taxonomy. For example, taxonomy can be “cases-category”.

Easy, once you know it :slight_smile:

{{ $category := index .Params "cases-category" }}
1 Like

Tight schedule - but at least you have a better answer now then mine :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.