🕵️ Privacy
此内容尚不支持你的语言。
Want to optimize the privacy of your site?
Hugo Blox applies several privacy enhancements to a site, automatically applying the latest privacy best practices for you by default, including:
- ✅ Self-contained site (no reliance on third-party CDN servers to download fonts etc.)
- ✅ Cookieless (GDPR friendly)
- ✅ Support for privacy-first analytics or no analytics
- ✅ Support for cookie consent
- ✅ Privacy policy
- ✅ Permissions policy
- ✅ Password protect a site with Netlify
- ✅ Hide a page from search engines - add
private: true
to page front matter
Cookie Law
By default, the Hugo Blox Builder does not create any cookies. Therefore, depending on your applicable laws, you may not need to provide a cookie consent notice, similar to why GitHub does not show a cookie consent notice.
However, your site may use cookies if you are using third party integrations, so you should always audit your site and seek legal advice from a privacy lawyer.
Cookie Consent
If you have determined that you need to show a cookie consent dialog, start by choosing a cookie compliance service, such as Cookie Hub.
Once you have chosen your preferred cookie compliance service, they should provide you with some HTML code.
Simply paste the code from your provider into the Head Hook and the provider’s cookie consent should appear.
For any issues with a provider’s service, contact the provider of the service.
Enhanced Privacy Mode
To enhance your site privacy, you can enable the Privacy Pack in config/_default/params.yaml
:
features: privacy_pack: enable: true
When the privacy pack is activated, Hugo Blox will request plugins to increase their privacy. Currently, the Google Analytics plugin is supported, leading to anonymized visitor IPs.
Have an idea for further privacy enhancements? Just submit a PR for review or discuss your idea in the Contributing channel on our Discord.
Write a Privacy Policy
To add a Privacy Policy, create a privacy.md
file in your content
folder and remove any draft
option from the front matter to publish it.
A link to the Privacy page will automatically appear in the site footer when using the default footer blox. You can also manually link to the page using a standard Markdown link such as [View Privacy](/privacy/)
.
Write Legal Terms
To add Legal Terms, create a terms.md
file in your content
folder and remove any draft
option from the front matter to publish it.
A link to the Legal Terms page will automatically appear in the site footer when using the default footer blox. You can also manually link to the page using a standard Markdown link such as [View Terms](/terms/)
.