{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/templates/j1/blocks/footer/boxes/issue.proc # Liquid PROCEDURE to create an ISSUE line 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 # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% comment %} language detection -------------------------------------------------------------------------------- {% endcomment %} {% if site.language == "en" %} {% assign language = "en" %} {% elsif site.language == "de"%} {% assign language = "de" %} {% else %} {% assign language = "en" %} {% endif %} {% if language == "en" %} {% assign issue_text = footer_options.issue.en.text %} {% assign date_format = footer_options.issue.en.date_format %} {% endif %} {% if language == "de" %} {% assign issue_text = footer_options.issue.de.text %} {% assign date_format = footer_options.issue.de.date_format %} {% endif %} {% capture modified %}{{issue_text}}: {{site.time | localize: date_format}}{% endcapture %} {% comment %} Debugging -------------------------------------------------------------------------------- footer_options.issue: {{footer_options.issue | debug}} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if footer_options.issue.enabled %} {% endif %}