Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gethinode/mod-cookieyes
A Hugo module to integrate CookieYes with your Hinode site (work in progress)
https://github.com/gethinode/mod-cookieyes
Last synced: 2 months ago
JSON representation
A Hugo module to integrate CookieYes with your Hinode site (work in progress)
- Host: GitHub
- URL: https://github.com/gethinode/mod-cookieyes
- Owner: gethinode
- License: mit
- Created: 2024-09-20T13:58:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-19T03:08:09.000Z (2 months ago)
- Last Synced: 2024-10-19T07:12:44.278Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 239 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hinode Module - CookieYes
A Hugo module to integrate CookieYes with your Hinode site
## About
![Logo](https://raw.githubusercontent.com/gethinode/hinode/main/static/img/logo.png)
Hinode is a clean blog theme for [Hugo][hugo], an open-source static site generator. Hinode is available as a [template][repository_template], and a [main theme][repository]. This repository maintains a Hugo module to integrate [CookieYes][cookieyes] with your Hinode site. Visit the Hinode documentation site for [installation instructions][hinode_docs].
## Contributing
This module uses [semantic-release][semantic-release] to automate the release of new versions. The package uses `husky` and `commitlint` to ensure commit messages adhere to the [Conventional Commits][conventionalcommits] 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 |
|---------------------------|---------|-------------|
| cookieyes.local | false | Trigger to force include the CookieYes scripts, bypassing other settings. Use this setting for debugging and testing only. |
| cookieyes.url | | Link to your personalized CookieYes script. See the installation code in the advanced settings of your CookieYes account. The code is available by clicking the button next to the cookie banner status. The link has the following pattern: `https://cdn-cookieyes.com/client_data/{installation code}/script.js`. |## Installation
Please ensure `mod-cookieyes` is imported before the `hinode` module to ensure the correct script template is initialized. The following snippet illustrates an example configuration for `hugo.toml`.
```toml
[module]
[[module.imports]]
path = "github.com/gethinode/mod-cookieyes"
[[module.imports]]
path = "github.com/gethinode/hinode"
```## Content Security Policy
CookieYes requires several directives to be added to your Content Security Policy. See the [policy requirements][cookieyes_csp] as provided by CookieYes for more details.
[hugo]: https://gohugo.io
[hinode_docs]: https://gethinode.com
[cookieyes]: https://cookieyes.com/
[cookieyes_csp]: https://www.cookieyes.com/documentation/content-security-policy/
[repository]: https://github.com/gethinode/hinode.git
[repository_template]: https://github.com/gethinode/template.git
[conventionalcommits]: https://www.conventionalcommits.org
[husky]: https://typicode.github.io/husky/
[semantic-release]: https://semantic-release.gitbook.io/