Hugo

How to Operator in Hugo

+++
title=" Lorem Inpsum"
price =“1,000”
+++

{{ add $.Params.price 20 }}

But error

Thanks

Try

price=1000

You can’t add integers to a string.

2 Likes