{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/blocks/footer/boxes/news_box.proc # Liquid PROCEDURE to create a news box for the footer # # Product/Info: # http://jekyll.one # # Copyright (C) 2020 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 title = include.title %} {% assign tagline = include.tagline %} {% assign posts_category = include.category %} {% assign posts_max = include.max_posts %} {% assign posts = include.posts %} {% comment %} post loop counter correction -------------------------------------------------------------------------------- {% endcomment %} {% assign max_posts = posts_max | minus:'1' %} {% assign posts_written = 0 %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %}