We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Add the following code to your module list in the config/_default/module.toml file.
config/_default/module.toml
[[imports]] path = "github.com/gethugothemes/hugo-modules/components/custom-script"
Call it, as a partial in your theme head.
<!-- custom script --> {{ partialCached "custom-script.html" . }}
Configure it in the config/_default/params.toml file.
config/_default/params.toml
# custom script on header, example: custom_script= "<script>console.log(\"Hello World\")</script>" custom_script = ""