Sha256: 413c383880c88595d0bc14fa774d07f2463bb096615e23ed0af8bf8276da8868
Contents?: true
Size: 1.41 KB
Versions: 6
Compression:
Stored size: 1.41 KB
Contents
# Middleman GDPR Helps getting your Middleman website GDPR compliant ## Installation Add this line to your Gemfile: ```ruby gem 'middleman-gdpr' ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ gem install middleman-gdpr ``` Activate [Sprockets](https://github.com/middleman/middleman-sprockets) and [I18n](https://middlemanapp.com/advanced/localization/): ```ruby # config.rb activate :sprockets activate :i18n ``` Add this to the layout: ```ruby <%= gdpr :cookie_consent %> ``` Add this to javascripts: ```js //= require gdpr/cookie_consent ``` Add this to stylesheets: ```sass @import 'gdpr/cookie_consent' ``` If your site isn't localized but you want gdpr messages to be in a given language (default: English), just add the corresponding option when activating I18n: ```ruby # config.rb activate :i18n, langs: [:fr] ``` Set the privacy policy url in the locales. ## Checklist https://www.eugdpr.org/ - [x] Cookie consent - [ ] Privacy policy - [ ] There must be an optin - [ ] Optin must be unchecked by default - [ ] Account must be deletable - [ ] Users must have access to their data - [ ] Users must be able to modify their data ## Thanks Inspired by cookies_eu (https://github.com/infinum/cookies_eu), thank you :) ## Contributing Feel free to pull request! ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
middleman-gdpr-1.1.0 | README.md |
middleman-gdpr-1.0.1 | README.md |
middleman-gdpr-1.0.0 | README.md |
middleman-gdpr-0.2.2 | README.md |
middleman-gdpr-0.2.1 | README.md |
middleman-gdpr-0.2.0 | README.md |