--- 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 Theme 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. # ----------------------------------------------------------------------------- # 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 %} {% comment %} wrapper to suppress "DOM flicker"|"Overflows" NOTE: 2021-11-13: Since moved to bs@5, a overflow is on the HOME page !!! NOT seen on content pages !!! ------------------------------------------------------------------------------ {% 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 container for WebHook modals ------------------------------------------------------------------------------ {% endcomment %} {% if webhook_options.enabled %}
{% endif %} {% comment %} Place container for the r-text resizer ------------------------------------------------------------------------------ {% endcomment %}
{% comment %} Initialize global JS scripts ------------------------------------------------------------------------------ {% endcomment %} {% endcapture %} {% comment %} POST processing of the generated page using (captured) cache -------------------------------------------------------------------------------- {% endcomment %} {% case environment %} {% comment %} DEVELOPMENT mode {{ j1_cache | regex_replace: 'js-nbinteract-widget', 'btn btn-primary btn-raised js-nbinteract-widget' | regex_replace: '(.*?)<\/h[1-2]>', '

\1

' | regex_replace: '¶|¶' | strip_empty_lines | remove: '

excerpt__end

' | pretty_print }} ------------------------------------------------------------------------------ {% 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 %}