{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/pages/page_content_generator.html # Liquid template to create the content portion for pages of type PAGE # as a sidebar # # Product/Info: # https://jekyll-one.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/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.j1_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.j1_config.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 -------------------------------------------------------------------------------- {% endcomment %} {% 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 %}