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

github.com/divinerites/divinerites-cookies

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/divinerites/divinerites-cookies

  • v1.2.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

divinerites-cookies

About

Small gohugo.io component for RGPD cookies consent management

Usage

config.toml

Include this params.global.cookies section in your config.toml ONLY if you want cookie consent.

File : config.toml

[params.global.cookies]
   enable = true
   # Layout de cookieconsent
   ck_enable = true
   ck_cdn = true
   ck_popup_bg = "#000"
   ck_button_bg = "transparent"
   ck_button_text = "#f1d600"
   ck_button_border = "#f1d600"
  • ck_enable : Choose type of cookie management

    • true = cookieconsent.osano
    • false = cookiechoice simple
  • ck_cdn = local or CDN online osano script

    • true = CDN online version
    • false = local (not updated) version

1 - Call header_cookies.html partial in your <head> section

<head>
...
{{ partial "header_cookies.html" . }}
...
</head>

2 - Call footer_cookie.html partial in your <footer> section

<footer>
...
{{ partial "footer_cookie.html" . }}
...
</footer>

Credits

  • Cookie Consent : https://docs.osano.com/category/10-consent-management
  • Copyright © 2020 onwards, Didier Divinerites

FAQs

Package last updated on 24 Aug 2020

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