{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/procedures/provider/ads # Liquid CONNECTOR for advertising providers supported by J1 Template # # Product/Info: # http://jekyll.one # # 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: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign advertising = site.data.j1_config.advertising.enabled %} {% assign advertising_provider = site.data.j1_config.advertising.provider %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if advertising and page.advertising %} {% case advertising_provider %} {% when "google" %} {% include themes/{{site.template.name}}/modules/connectors/ad/google-adsense.html %} {% when "custom" %} {% include themes/{{site.template.name}}/modules/connectors/analytic/custom-analytics.html %} {% endcase %} {% endif %}