{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/modules/footers/footer_light_generator.html # Liquid TEMPLATE to create the footer for all pages # # Product/Info: # http://jekyll.one # # Copyright (C) 2019 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 %} {% capture analytics%}themes/{{site.template.name}}/modules/connectors/analytics{% endcapture %} {% capture about_box %}themes/{{site.template.name}}/modules/footers/boxes/about_box.proc{% endcapture %} {% capture news_box %}themes/{{site.template.name}}/modules/footers/boxes/news_box.proc{% endcapture %} {% capture links_box %}themes/{{site.template.name}}/modules/footers/boxes/links_box.proc{% endcapture %} {% capture contacts_box %}themes/{{site.template.name}}/modules/footers/boxes/contacts_box.proc{% endcapture %} {% capture legal_statements %}themes/{{site.template.name}}/modules/footers/boxes/legal_statements.proc{% endcapture %} {% capture social_media_icons %}themes/{{site.template.name}}/modules/footers/boxes/social_media_icons.proc{% endcapture %} {% comment %} Variables --------------------------------------------------------------- {% endcomment %} {% assign footer_config = site.data.modules.j1_footer %} {% if site.data.j1_config.analytics.enabled %} {% include analytics %} {% endif %} {% comment %} Main --------------------------------------------------------------- {% endcomment %} {% assign enabled_boxes = 0 %} {% for item in footer_config %} {% if item.footer_box %} {% for boxes in item.footer_box %} {% for box in boxes %} {% for property in box %} {% if property.enabled %} {% assign enabled_boxes = enabled_boxes | plus:1 %} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {% assign footer_box_width_md = 12 | divided_by:enabled_boxes %}