{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/layouts/content_generator_post.html # Liquid template to create the content portion for posts # # 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 # ----------------------------------------------------------------------------- # 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/posts/pager.proc{% endcapture %} {% comment %} Process YML config data ================================================================================ {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign template_config = site.data.j1_config %} {% assign blocks = site.data.blocks %} {% assign modules = site.data.modules %} {% assign builder = site.data.builder %} {% assign plugins = site.data.plugins %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign rtext = template_config.typography.rtext %} {% assign page_rtext = page.rtext %} {% assign page_rtext_size = page.rtext_size %} {% if rtext %} {% assign rtext_size = template_config.typography.rtext_size %} {% else %} {% assign rtext_size = 0 %} {% endif %} {% comment %} i18n: language detection -------------------------------------------------------------------------------- {% endcomment %} {% if site.language == "en" %} {% assign language = "en" %} {% elsif site.language == "de"%} {% assign language = "de" %} {% else %} {% assign language = "en" %} {% endif %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if page.comments %}
{% else %}
{% endif %} {% comment %} Blog post CONTENT ------------------------------------------------------------------------------ {% endcomment %}
{% if page.page_navigation %} {% include {{pager}} %} {% else %} {% endif %}
{% if language == "en" %}

{{ page.date | localize: "%Y %B, %e" }}

{% endif %} {% if language == "de" %}

{{ page.date | localize: "%-d. %B %Y" }}

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