{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/procedures/posts/create_collection_article_preview.proc # Liquid PROCEDURE to create a series header for collection articles # # http://jekyll.one # # Copyright (C) 2023, 2024 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE # ----------------------------------------------------------------------------- # Posts procedure. Generates ... # # Usage: # # 1) assign the 'page', 'post' and 'readmore' variables # 2) include the create_ad_block.proc procedure # # Example: # # {% capture create_ad_block %}themes/{{site.template.name}}/procedures/posts/create_ad_block.proc{% endcapture %} # {% assign my_navigation_data = nav_data_array %} # # {% include {{create_ad_block}} page=page post=post %} # # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign template_config = site.data.j1_config %} {% assign blocks = site.data.blocks %} {% assign modules = site.data.modules %} {% assign plugins = site.data.plugins %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign category_blacklist = template_config.posts.category_blacklist %} {% assign articles = include.collection %} {% comment %} Debug templates -------------------------------------------------------------------------------- {% endcomment %} {% comment %} articles: {{ articles | debug }} {% endcomment %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% for article in articles %} {% comment %} article_url: {{ article.url | debug }} {% endcomment %} {% comment %} article: {{ article | debug }} {% endcomment %} {% assign my_categories = article.categories | difference: category_blacklist %} {% assign categories = my_categories |join: " · " %} {% assign tags = article.tags | join: " · " %}

{{ article.title }}

{{ article.excerpt }}
{% endfor %}