Evaluating a variable as Hugo code? `eval` or `hugoify` function?

No, it is not.

You could do something like this, but I wouldn’t…

a:
  type: string
  content: Some regular text.
b:
  type: pageReference
  content: "/about"
c:
  type: pageProperty
  content: title

I came up with an eval function a while ago, but I only use for testing and some documentation:
https://discourse.gohugo.io/t/eval-function/32148/5

1 Like