Sha256: 78b1d84f285cc01c681e45d4557bba521416d8786ac5b715c54bd61d3428fcde
Contents?: true
Size: 1.88 KB
Versions: 2
Compression:
Stored size: 1.88 KB
Contents
{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/modules/connectors/analytics # Liquid CONNECTOR for Analytic Providers supported by J1 Template # # Product/Info: # http://jekyll.one # # Copyright (C) 2021 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign analytics = site.data.j1_config.analytics.enabled %} {% assign analytics_provider = site.data.j1_config.analytics.provider %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} <!-- [INFO ] [j1.modules.connectors.analytics ] [ start processing load region head, layout: {{page.layout}} ] --> {% if analytics and page.analytics %} {% case analytics_provider %} {% when "google" %} <!-- [INFO ] [j1.modules.connectors.analytics ] [ place Google Analytics ] --> {% include themes/{{site.template.name}}/modules/connectors/analytic/google-analytics.html %} {% when "custom" %} <!-- [INFO ] [j1.modules.connectors.analytics ] [ place Custom Provider ] --> {% include themes/{{site.template.name}}/modules/connectors/analytic/custom-analytics.html %} {% endcase %} {% endif %} <!-- [INFO ] [j1.modules.connectors.analytics ] [ end processing ] -->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
j1-template-2021.1.1 | _includes/themes/j1/modules/connectors/analytics |
j1-template-2021.1.0 | _includes/themes/j1/modules/connectors/analytics |