--- layout: compress --- {% capture j1_cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/_layouts/default.html # Liquid (default) layout template for all content-pages # # Product/Info: # https://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 # # ----------------------------------------------------------------------------- # NOTE: # This is the DEFAULT layout for ALL pages|layouts used by J1 Template. # ----------------------------------------------------------------------------- # NOTE: # Depending on the site configuration, the HTML code generated by # BASE layout will be compressed as a final processing step. # ----------------------------------------------------------------------------- # NOTE: # Do NOT add any CONTENT here. If needed, go for a "next level" layout # that extents the layout BASE by additional data for your specific # needs based on YAML configuration data files. # ----------------------------------------------------------------------------- # Test data: # {{ lanes_collate | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture default_writer %}themes/{{site.template.name}}/procedures/layouts/default_writer.proc{% endcapture %} {% comment %} Set global settings -------------------------------------------------------------------------------- {% endcomment %} {% assign environment = site.environment %} {% assign compress = site.compress_html.enabled %} {% assign prettify = site.data.j1_config.prettify %} {% comment %} Process YML config data ================================================================================ {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign lanes_collate = site.data.layouts.default.lanes %} {% assign logon_client = site.data.modules.j1_sign_in_up %} {% assign body_scrollbar = site.data.j1_config.body.scrollbar %} {% if page.scrollbar %} {% assign body_scrollbar = body_scrollbar | merge: page.scrollbar %} {% endif %} {% if jekyll.environment != 'development' %} {% assign environment = jekyll.environment | strip %} {% endif %} {% comment %} Set config options -------------------------------------------------------------------------------- {% assign body_scrollbar_defaults = site.data.j1_config.body.scrollbar %} {% assign body_scrollbar_config = page.scrollbar %} {% assign body_scrollbar = body_scrollbar_defaults | merge: body_scrollbar_config %} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Additional debug data -------------------------------------------------------------------------------- {% endcomment %} {% if page.debug %} {% endif %} {% comment %} Collect the head section (region head) ------------------------------------------------------------------------------ {% endcomment %}
{% include {{default_writer}} region='head' items=lanes_collate %} {% comment %} Collect the body section (region body-*) ------------------------------------------------------------------------------ {% if body_scrollbar %} {% else %} {% endif %} ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Master Wrapper to prevent "DOM flicker" ------------------------------------------------------------------------------ {% endcomment %}excerpt__end
' | pretty_print }} {% else %} {{ j1_cache | strip_empty_lines | remove: 'excerpt__end
' }} {% endif %} {% comment %} END prettify {% endcomment %} {% comment %} PRODUCTION mode ------------------------------------------------------------------------------ {% endcomment %} {% when 'production' or 'prod' %} {% unless compress %} {% if prettify %} {{ j1_cache | remove: 'excerpt__end
' | strip_html_comments | strip_js_comments | strip_empty_lines | pretty_print }} {% else %} {{ j1_cache | remove: 'excerpt__end
' | strip_html_comments | strip_js_comments | strip_empty_lines }} {% endif %} {% comment %} END prettify {% endcomment %} {% endunless %} {% comment %} UNLESS compress {% endcomment %} {% if compress %} {{ j1_cache | remove: 'excerpt__end
' | strip_html_comments | strip_js_comments | strip_empty_lines }} {% endif %} {% comment %} UNKNOWN mode ------------------------------------------------------------------------------ {% endcomment %} {% else %} {{ j1_cache | remove: 'excerpt__end
'| strip_empty_lines }} {% endcase %}