@gethinode/mod-hubspot
v1.1.6
Published
A Hugo module to add Hubspot to your Hinode site (work in progress)
Downloads
183
Readme
Hinode Module - HubSpot
About
Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to embed HubSpot forms within a Hinode site. Visit the Hinode documentation site for installation instructions.
Contributing
This module uses semantic-release to automate the release of new versions. The package uses husky
and commitlint
to ensure commit messages adhere to the Conventional Commits specification. You can run npx git-cz
from the terminal to help prepare the commit message.
Configuration
This module supports the following parameters (see the section params.modules
in config.toml
):
| Setting | Default | Description | |---------------------------|---------|-------------| | portal | | The portal ID of the HubSpot account where you created the form. This is used to retrieve the form definition. | | region | | The region of the portal where the form was created. This is used to retrieve the form definition. |
Content Security Policy
HubSpot forms require several directives to be added to your Content Security Policy. See the policy requirements for more details. The following directives are required to enable correct form handling:
| Policy | Value | |-------------------|------------------------------------------------------------------| | script-src | 'self' *.hsforms.net *.hs-scripts.com *.google.com *.gstatic.com | | connect-src | 'self' *.hsforms.com *.hubspot.com | | frame-src | 'self' *.google.com | | frame-ancestors | 'self' *.google.com | | img-src | 'self' data: *.hsforms.net *.hsforms.com |