{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/modules/footers/boxes/news_box.proc # Liquid PROCEDURE to create a news box for the footer # # Product/Info: # http://jekyll.one # # Copyright (C) 2019 Juergen Adams # # Licensed under the Creative Commons Attribution 3.0 Unported License. # See: http://creativecommons.org/licenses/by/3.0/. # # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures --------------------------------------------------------------- {% endcomment %} {% comment %} Variables --------------------------------------------------------------- {% endcomment %} {% assign posts_category = include.category %} {% assign posts_max = include.max_posts %} {% assign posts_collate = include.items %} {% comment %} post loop counter correction --------------------------------------------------------------- {% endcomment %} {% assign max_posts = posts_max | minus:'1' %} {% assign posts_written = 0 %} {% comment %} Main --------------------------------------------------------------- {% endcomment %}