--- layout: compress --- {% capture j1_cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/_layouts/default.html # Liquid (default) layout template for all content-pages # # Product/Info: # https://jekyll.one # # Copyright (C) 2021 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 %} 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 %} {% 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 %} {% 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 %} {% comment %} {% endcomment %} {% include {{default_writer}} region='head' items=lanes_collate %} {% comment %} collect the body section (region body-*) ------------------------------------------------------------------------------ {% if body_scrollbar %} {% else %} {% endif %} ------------------------------------------------------------------------------ {% endcomment %} {% comment %} wrapper to prevent "DOM flicker" ------------------------------------------------------------------------------ {% endcomment %} {% 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 verhindern die Ausführung von Javascript." %} {% assign contact_issue = "Technischer Kontakt" %} {% endif %} {% comment %} Place|Initialize module components ------------------------------------------------------------------------------ NOTE: xhr_container should be DYNAMICALLY placed by the module using it !!! Example CookieConsent ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Place container for Cookiebar modals ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Place container for WebHook modals ------------------------------------------------------------------------------ {% endcomment %} {% if webhook_options.enabled %}
{% endif %} {% comment %} Place container for R-Text resizer modals (deactivated) ------------------------------------------------------------------------------
------------------------------------------------------------------------------ {% endcomment %} {% comment %} JS for R-Text (deactivated) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Initialize Tooltips|Popovers ------------------------------------------------------------------------------ {% endcomment %} {% comment %} Initialize Window History (back on ) ------------------------------------------------------------------------------ {% 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 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 %}