{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/pages/post_content_generator.html # Liquid template to create the content portion for pages of type POST # # 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 %} {% capture create_series_header %}themes/{{site.template.name}}/procedures/posts/create_series_header.proc{% endcapture %} {% capture create_ad_block %}themes/{{site.template.name}}/procedures/posts/create_ad_block.proc{% endcapture %} {% capture pager %}themes/{{site.template.name}}/procedures/global/pager.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign page_sidebar = page.sidebar %} {% 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 page_toc and tocbot_enabled %} {% assign page_toc = true %} {% assign page_sidebar = true %} {% else %} {% assign page_toc = false %} {% assign page_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 page.comments %}
{% else %}
{% endif %} {% comment %} Blog post CONTENT ------------------------------------------------------------------------------ {% endcomment %} {% if page_sidebar == false %}
{% include {{pager}} %}

{{ page.date | date_to_long_string }}

{% comment %} Place Blog post SERIES Navigation ------------------------------------------------------------------------ {% endcomment %} {% if page.series %} {% endif %}
{% else %}
{% include {{pager}} %}

{{ page.date | date_to_long_string }}

{% comment %} Place Blog post SERIES Navigation ------------------------------------------------------------------------ {% endcomment %} {% if page.series %} {% endif %}
{% comment %} Place Sidebar|Tocbot ---------------------------------------------------------------------------- {% endcomment %}
{% endif %} {% comment %} END Blog post CONTENT ------------------------------------------------------------------------------ {% endcomment %}