lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
648 stars 355 forks source link

Difficulties adding GDPR-compliant cookie consent dialogue. #482

Closed sjkorvin closed 6 months ago

sjkorvin commented 6 months ago

Is your feature request related to a problem? Please describe. I am attempting to add GDPR compliance to my site as a newbie to web development. The ready-made Javascript-based solutions do not seem to me made for Hugo templates.

Describe the solution you'd like I would like for the Hugo cookie consent add-on to be built into Anatole. (https://hugocodex.org/add-ons/cookie-consent/). If the add-on is not official, I apologize for my lack of knowledge.

Describe alternatives you've considered I have tried to add this cookie consent project (https://github.com/orestbida/cookieconsent); however, I do not know if it is appropriate for a Hugo-based website.

Additional context When trying to add the cookie consent project linked to in the previous section as a local .js file, I received an error in the browser console stating that import statements cannot be used outside a module. Thus, no cookie consent pop-up appeared when using that project.

sjkorvin commented 6 months ago

I am no longer looking for a solution to this issue. I have removed Google Analytics from my personal website.