{% 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) 2023, 2024 Juergen Adams # # J1 Template is licensed under the MIT License. # For details, 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 %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign title = box.title %} {% assign title_translation = box.title_translation %} {% assign tagline = box.tagline %} {% assign posts_category = include.category %} {% assign posts_max = include.max_posts %} {% assign posts = include.posts %} {% comment %} language detection -------------------------------------------------------------------------------- {% endcomment %} {% if site.language == "en" %} {% assign language = "en" %} {% elsif site.language == "de"%} {% assign language = "de" %} {% else %} {% assign language = "en" %} {% endif %} {% comment %} post loop counter correction -------------------------------------------------------------------------------- {% endcomment %} {% assign max_posts = posts_max | minus:'1' %} {% assign posts_written = 0 %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %}