--- layout: default debug: false --- {% comment %} # ----------------------------------------------------------------------------- # ~/_layouts/home.html # Liquid layout template for all pages of content-type HOME (index.html) # # Product/Info: # https://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: # This is the layout for all content pages of type HOME. # Layout HOME is based on layout DEFAULT to inherit all # default (HTML) data used for ALL pages. # ----------------------------------------------------------------------------- # NOTE: # By J1 template, "Liquid Procedures" are being used intensively. To load # HTML data for a region (lane), the (Liquid) procedure "section_loader" # places the components based on the YAML data file: home.yml. # ----------------------------------------------------------------------------- # NOTE: # Do NOT add any CONTENT here. If needed, go for a "next level" layout # that extents the layout DEFAULT by additional data for your specific # needs based on YAML configuration data files. # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture default_writer %}themes/{{site.template.name}}/procedures/layouts/default_writer.proc{% endcapture %} {% capture content_writer %}themes/{{site.template.name}}/procedures/layouts/content_writer.proc{% endcapture %} {% comment %} Set global settings -------------------------------------------------------------------------------- {% endcomment %} {% assign environment = site.environment %} {% comment %} Process YML config data ================================================================================ {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign lanes_collate = site.data.layouts.home.lanes %} {% assign rtext = site.data.j1_config.typography.rtext %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign page_rtext = page.rtext %} {% assign page_rtext_size = page.rtext_size %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if rtext %} {% assign rtext_size = site.data.j1_config.typography.rtext_size %} {% else %} {% assign rtext_size = 0 %} {% endif %} {% comment %} Collect the BODY-HEADER region ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Collect the BODY-MAIN region ------------------------------------------------------------------------------ {% endcomment %}
{% include {{content_writer}} region='body-main' items=lanes_collate %}