{#- The journal's pieces, shared by the page (handler.html) and the fragment a closed fold fetches (handler_journal_fold.html). `stats` is a fold's header; `day_list` its entries. -#} {% set JICO = {'reflection':'πŸ““','checkin':'🐾','mantra':'πŸ”','affirmation':'✨','meditation':'🧘','confession':'πŸ™','catchup':'πŸ—’'} %} {% macro stats(g) -%} {% for k, ico in JICO.items() %}{% if g.kinds.get(k) %}{{ ico }} {{ g.kinds[k] }}{% endif %}{% endfor %} {%- if g.means %}{% for k, v in g.means.items() %}{{ k }} {{ v }}{% endfor %}{% endif %} {%- endmacro %} {% macro day_list(days) -%} {% for d in days %}

{{ d.label }} {{ d.entries|length }}

{% else %}

Nothing written.

{% endfor %} {%- endmacro %} {% macro lazy_fold(g) -%}
{{ g.label }} {{ g.days }} day{{ 's' if g.days != 1 }}{{ stats(g) }}

opening…

{%- endmacro %}