{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/layouts/content_generator_page.html # Liquid template to create the content portion for pages of type PAGE # # 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 %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign toccer_config = site.data.modules.j1_toccer %} {% assign tocbot_enabled = toccer_config.enabled %} {% assign rtext = site.data.template_settings.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 %}
{% if sidebar == false %}
{{content}}
{% else %}
{{ content }} {% comment %} Place additional headline for comments ------------------------------------------------------------------------ {% endcomment %} {% if page.comments %}

Leave a Comment

{% endif %}
{% comment %} Place Sidebar|Tocbot -------------------------------------------------------------------------- {% endcomment %} {% endif %}
{% comment %} Calc|Write the Back URL -------------------------------------------------------------------------------- {% if site.permalink == 'none' %} {% capture browser_page_url %}{{page.url | prepend: site.baseurl}}.html {% endcapture %} {% else %} {% capture browser_page_url %}{{page.url | prepend: site.baseurl}}{% endcapture %} {% endif %} -------------------------------------------------------------------------------- {% endcomment %}