Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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/