{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/layouts/content_generator_collection.html # Liquid template to create the content portion for pages of type COLLECTION # # 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 # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture pager %}themes/{{site.template.name}}/procedures/global/pager.proc{% endcapture %} {% comment %} Process YML config data ================================================================================ {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign site_config = site %} {% assign template_config = site.data.template_settings %} {% assign blocks = site.data.blocks %} {% assign modules = site.data.modules %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign toccer_defaults = modules.defaults.toccer.defaults %} {% assign toccer_settings = modules.toccer.settings %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% assign toccer_options = toccer_defaults | merge: toccer_settings %} {% assign tocbot_enabled = toccer_options.enabled %} {% assign rtext = template_config.typography.rtext %} {% assign page_rtext = page.rtext %} {% assign page_rtext_size = page.rtext_size %} {% assign page_toccer = page.toccer %} {% assign page_toc = page.toc %} {% if tocbot_enabled and page_toc or page_toccer %} {% assign sidebar = true %} {% else %} {% assign sidebar = false %} {% endif %} {% if rtext %} {% assign rtext_size = site.data.template_settings.typography.rtext_size %} {% else %} {% assign rtext_size = 0 %} {% endif %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %}