Pass params in url

Is there a way to pass params from an url to templates?

For example:

And then access the variable year in the template.

No, Hugo is static, so if you want to handle it in s static way, you need to create 1 page per year with a static URL.

If you want to do it in a dynamic way, you may consider adding some JavaScript to the mix (i.e. doing it on the client/browser).

OK, thanks for clearing that up.