-
Notifications
You must be signed in to change notification settings - Fork 1
Developing
Adam Kostarelas edited this page Jul 18, 2022
·
2 revisions
Info on developing HuTasker
Adding the flag --ignoreCache
forces Hugo do re-download the JSON. Handy if you're making changes to an API and want to see changes. Warning, can make you go over your API limits, so use sparingly.
Using the following will allow you to overwrite params or other configs within Hugo:
env HUGOxPARAMSxAPIxKEY="Secret Key"
Overwrites the params.toml API key="" to "Secret Key"
Good if you don't want to commit sensitive info to a pubic repo
When loading a partial, it won't have the same scope as the page that the data is coming from.
You can pass data by adding it at the end of the partial. e.g.: {{ partial "foo.html" (dict "context" .) }}
. You can then call this with {{ $context := .context }}