Add custom variables to config #1909
Unanswered
simonedimaria
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm trying to add custom variable to be able to access them from my partials templates. I tried in different ways, e.g adding my
categories.web
inside[params]
table inhugo.toml
file and tried to access it inside my partial template via.Site.Params.categories.web
but i get null values. I also tried to add acategories.yaml
file inside my/data
directory and try to access the variables as.Site.Data.categories.web
but still no luck.How can i accomplish that?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions