{#- The 10 comments before `earlier` (a comment id), for the panel's "Show earlier comments" button. -#} {% import "_panel_parts.html" as pp with context %} {% set items = panel_page.items %}{% set shown = items[-10:] %} {% if shown %}{{ pp.earlier(10 if panel_page.older_before else items | length - shown | length, shown[0].id) }}{% endif %} {% for c in shown %}{{ pp.comment(c) }}{% endfor %}