{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/procedures/posts/create_series_header.proc # Liquid PROCEDURE to create a series header for post series # # http://jekyll.one # # Copyright (C) 2023 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md # # ----------------------------------------------------------------------------- # Posts procedure. Generates ... # # Usage: # # 1) assign the 'page', 'post' and 'readmore' variables # 2) include the create_series_header.proc procedure # # Example: # # {% capture create_series_header %}themes/{{site.template.name}}/procedures/posts/create_series_header.proc{% endcapture %} # {% assign my_navigation_data = nav_data_array %} # # {% include {{create_series_header}} page=page post=post %} # # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{liquid_var | debug}} # # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign readmore = false %} {% assign page = include.page %} {% assign post = include.post %} {% assign readmore = include.readmore %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% assign count = '0' %} {% assign idx = '0' %} {% assign list = '' %} {% capture open %}