--- layout: compress # final layout in inheritance debug: false # enable|disable additional debug information written to (static) content source --- {%- capture j1_cache -%} {% comment %} # ----------------------------------------------------------------------------- # ~/_layouts/default.html # Liquid default (base) layout template for all content-pages # # Product/Info: # https://jekyll.one # # Copyright (C) 2023 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md # # ----------------------------------------------------------------------------- # NOTE: # This is the DEFAULT (base) layout for ALL pages|layouts used by J1 Theme. # ----------------------------------------------------------------------------- # NOTE: # Depending on the site configuration, the HTML code generated by # the base layout 'default.html' will be compressed as a final processing # step. # ----------------------------------------------------------------------------- # NOTE: # Do NOT add any CONTENT here. If needed, go for a "next level" layout # (e.g. 'home.html' or 'page.html') that extents the layout DEFAULT by # additional data for your specific needs based on YAML configuration # data files. # ----------------------------------------------------------------------------- # NOTE: # Output whitespace control: '%-' and '-%'for all liquid markups to strip # blank lines from the rendered HTML. # ----------------------------------------------------------------------------- # Test data: # {{ lanes_collate | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} global variables -------------------------------------------------------------------------------- {% endcomment %} {% include themes/{{site.template.name}}/procedures/global/set_base_vars_folders.proc %} {% comment %} liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture default_writer %}themes/{{site.template.name}}/procedures/layouts/default_writer.proc{% endcapture %} {% comment %} process YML config data ================================================================================ {% endcomment %} {% comment %} initialize global settings -------------------------------------------------------------------------------- {% endcomment %} {% assign environment = site.environment %} {% assign template_version = site.version %} {% assign compress = site.compress_html.enabled %} {% assign prettify = data.j1_config.prettify %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign template_config = site.data.j1_config %} {% assign blocks = site.data.blocks %} {% assign modules = site.data.modules %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign scroller_defaults = modules.defaults.scroller %} {% comment %} Webhooks disabled -------------------------------------------------------------------------------- {% assign webhook_defaults = modules.defaults.webhooks.defaults %} {% assign webhook_settings = modules.webhooks.settings %} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% assign tooltips_options = template_config.bootstrap.tooltips %} {% assign popovers_options = template_config.bootstrap.popovers %} {% comment %} Webhooks disabled -------------------------------------------------------------------------------- {% assign webhook_options = webhook_defaults | merge: webhook_settings %} -------------------------------------------------------------------------------- {% endcomment %} {% assign lanes_collate = data.layouts.default.lanes %} {% assign logon_client = data.modules.j1_sign_in_up %} {% assign body_scrollbar = data.j1_config.body.scrollbar %} {% comment %} Overload properties from page options -------------------------------------------------------------------------------- {% endcomment %} {% if page.scrollbar %} {% assign body_scrollbar = page.scrollbar %} {% endif %} {% 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 %} {% if site.noscript %} {% assign page_noscript = site.noscript %} {% else %} {% assign page_noscript = false %} {% endif %} {% assign language = site.language %} {% assign webmaster_email = site.webmaster.email %} {% assign copyright_info = site.copyright %} {% assign http_error = '444' %} {% assign back_url = "about:blank" %} {% capture brand_image %}{{images_dir}}/{{brand_image_source}}{% endcapture %} {% if language != 'en' or language != 'de' %} {% assign language = 'en' %} {% endif %} {% if language == 'en' %} {% assign title = "Javascript disabled" %} {% assign back_url_text = "Cannot continue" %} {% assign reason = "Your current browser settings reject the use of Javascript." %} {% assign contact_issue = "Technical Contact" %} {% endif %} {% if language == 'de' %} {% assign title = "Javascript abgeschaltet" %} {% assign back_url_text = "Fortsetzung nicht möglich" %} {% assign reason = "Die aktuellen Einstellungen Ihres Browsers erlauben KEINE Ausführung von Javascript." %} {% assign contact_issue = "Technischer Kontakt" %} {% endif %} {% comment %} current noscript cause errors in Nu HTML Checker See: https://validator.w3.org/nu ---------------------------------------------------------------------------- {% endcomment %} {% if page_noscript %} {% endif %} {% comment %} wrapper to suppress DOM flicker|Overflow ---------------------------------------------------------------------------- NOTE: 2021-11-13: Since moved to bs@5, a overflow is on the HOME page but !!! NOT seen on content pages !!! ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Place container for the r-text resizer (currently NOT used) ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- {% endcomment %} {% comment %} Place container for WebHook modals ---------------------------------------------------------------------------- {% endcomment %} {% if webhook_options.enabled %} {% endif %} {% comment %} Initialize global JS scripts ---------------------------------------------------------------------------- {% endcomment %} {%- endcapture -%} {% comment %} POST processing of the generated page using (captured) cache -------------------------------------------------------------------------------- {% endcomment %} {%- case environment -%} {% comment %} DEVELOPMENT mode ------------------------------------------------------------------------------ {% endcomment %} {%- when 'development' or 'dev' or 'test' -%} {%- if prettify -%} {{ j1_cache | strip_empty_lines | remove: 'excerpt__end
' | pretty_print }} {%- else -%} {{ j1_cache | strip_empty_lines | remove: 'excerpt__end
' }} {%- endif- %} {% comment %} END IF 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 %} IF compress {% endcomment %} {% comment %} UNKNOWN mode ------------------------------------------------------------------------------ {% endcomment %} {%- else -%} {{ j1_cache | remove: 'excerpt__end
'| strip_empty_lines }} {%- endcase -%}