Replies: 4 comments
-
That's right in most case when you're using it in Hugo templates, I'd suggest using If you're using Markdown, please use the param shortcode instead, e.g. BTW, your code above doesn't indent correctly, it maybe just typo, please wrap your code with Markdown code block. ```yaml
hb:
custom:
color: "#3a7bd5"
``` |
Beta Was this translation helpful? Give feedback.
-
|
I'm using the Hugo Bootstrap theme
{{ site.Params.hb.custom.color }}
When I'm running
Didn't it output anything
|
Beta Was this translation helpful? Give feedback.
-
|
I'm sure it's indented correctly hb:
custom:
color: "#3a7bd5"and hb-blog-sidebar.html |
Beta Was this translation helpful? Give feedback.
-
|
I see, you may not have configured the hooks correctly in hugopress:
modules:
hb-custom:
hooks:
// other hooks ...
hb-blog-sidebar:
cacheable: trueBTW, the context (the dot |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I set parameters in params.yaml like
hb:
custom:
color: "#3a7bd5"
How to use it on the page
like
{{ .Site.Params.hb.custom.color }}
Beta Was this translation helpful? Give feedback.
All reactions