{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/blocks/ad.html # Liquid PROCEDURE template to create an advertising block for Advertising # # 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 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" %}
{% when "custom" %}
{% endcase %} {% endif %}