{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/layouts/shim_generator.html # Liquid template to generate HTML shim configs for ALL modules configured # # Product/Info: # https://jekyll-one.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE # # ----------------------------------------------------------------------------- # Test data: # {{ j1_config | debug }} # # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign j1_apps = site.data.apps %} {% assign nedb_config = j1_apps.j1_nedb %} {% assign cookie_consent_config = site.data.modules.j1_cookie_consent %} {% assign consent_defaults = cookie_consent_config.defaults %} %} {% assign consent_settings = cookie_consent_config.consent %} {% assign consent_config = consent_settings | merge: consent_defaults %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% if consent_config.enabled %} {% assign cookie_consent = true %} {% endif %} {% assign consent_modal_id = consent_config.consent_modal_id %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if cookie_consent %}
{% endif %}