Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gethugothemes/hugo-modules/components/cookie-consent

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gethugothemes/hugo-modules/components/cookie-consent

  • v0.0.0-20240925042433-d2b5d05977e8
  • Source
  • Go
  • Socket score

Version published
Created
Source

Install Module

Add the following code to your module list in the config/_default/module.toml file.

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/cookie-consent"

Add the following code to your js plugins list in the hugo.toml or config.toml file.

[[params.plugins.js]]
link = "plugins/cookie.js"

Call it, as a partial in your theme. [NOTE: add it into bottom of script.html file]

<!-- cookie consent -->
{{ partialCached "cookie-consent.html" . }}

Configure it in the config/_default/params.toml file.

# cookies
[cookies]
enable = true
expire_days = 2
content = "This site uses cookies. By continuing to use this website, you agree to their use."
button = "I Accept"

FAQs

Package last updated on 25 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc