Skip to content

Instantly share code, notes, and snippets.

@introt
Created August 16, 2021 07:05
Show Gist options
  • Save introt/24497f9219646c4c49ec70cb0225c6bd to your computer and use it in GitHub Desktop.
Save introt/24497f9219646c4c49ec70cb0225c6bd to your computer and use it in GitHub Desktop.
Zim wiki journal template re:#1547
[% IF journal_plugin.page_type == 'day' -%]
======= [% strftime("%A %d %b %Y", journal_plugin.date) %] =======
[%- ELSIF journal_plugin.page_type == 'week' -%]
======= [% strfcal("Viikko %W %Y", journal_plugin.date) %] =======
[% strftime("%d %B", journal_plugin.date) %] to [% strftime("%d %B", journal_plugin.end_date) %]
[% FOREACH day IN journal_plugin.days() %]
=== [% strftime("%A %d %B", day) %] ===
[% END %]
[%- ELSIF journal_plugin.page_type == 'month' -%]
======= [% strftime("%B %Y", journal_plugin.date) %] =======
[% gettext("Created") %] [% strftime("%Y-%m-%d") %]
[% FOREACH day IN journal_plugin.days() %]
[% strftime("%Y-%m-%d", day) %]
[% END %]
[%- ELSIF journal_plugin.page_type == 'year' -%]
======= Year [% strftime("%Y", journal_plugin.date) %] =======
[%- ELSE -%]
======= [% page.basename %] =======
[% gettext("Created") %] [% strftime("%A %d %B %Y") %]
[%- END %]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment