{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/blocks/footer/generator.html # Liquid TEMPLATE to create the footer for all pages # # Product/Info: # http://jekyll.one # # Copyright (C) 2022 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # NOTE: obsolete since loaded via AJAX from HTML data file # # ----------------------------------------------------------------------------- # 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}}/blocks/footer/boxes/about_box.proc{% endcapture %} {% capture news_box %}themes/{{site.template.name}}/blocks/footer/boxes/news_box.proc{% endcapture %} {% capture links_box %}themes/{{site.template.name}}/blocks/footer/boxes/links_box.proc{% endcapture %} {% capture contacts_box %}themes/{{site.template.name}}/blocks/footer/boxes/contacts_box.proc{% endcapture %} {% capture legal_statements %}themes/{{site.template.name}}/blocks/footer/boxes/legal_statements.proc{% endcapture %} {% capture social_media_icons %}themes/{{site.template.name}}/blocks/footer/boxes/social_media_icons.proc{% endcapture %} {% comment %} Process YML config data ================================================================================ {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign data = site.data %} {% assign blocks = data.blocks %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign footer_defaults = blocks.defaults.footer.defaults %} {% assign footer_settings = blocks.footer.settings %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% assign footer_options = footer_defaults | merge: footer_settings %} {% if data.j1_config.analytics.enabled %} {% include analytics %} {% endif %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% assign enabled_boxes = 0 %} {% for item in footer_options %} {% 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 %}