--- layout: compress --- {% capture j1_cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/_layouts/default.html # Liquid (default) layout template for all content-pages # # Product/Info: # https://jekyll-one.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/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 %} Additional debug data -------------------------------------------------------------------------------- {% endcomment %} {% if page.debug %} {% endif %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture default_writer %}themes/{{site.template.name}}/procedures/layouts/default_writer.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign lanes_collate = site.data.layouts.default.lanes %} {% assign environment = site.environment %} {% assign compress = site.compress_html.enabled %} {% assign prettify = site.data.j1_config.prettify %} {% assign logon_client = site.data.modules.j1_sign_in_up %} {% if jekyll.environment != 'development' %} {% assign environment = jekyll.environment | strip %} {% endif %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Collect the head section (region head) ------------------------------------------------------------------------------ {% endcomment %}
{% include {{default_writer}} region='head' items=lanes_collate %} {% comment %} Collect the body section (region body-*) ------------------------------------------------------------------------------ {% 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 %}