ikiwiki-calendar(1)
β¨ ikiwiki-calendar β¨
so bestie, this is ikiwiki-calendar from the General Commands Manual (section 1, she's a command fr) π
πΈ NAME πΈ
ikiwiki-calendar β create calendar archive pages ποΈβ¨
π SYNOPSIS π
ikiwiki-calendar [-f] your.setup [pagespec] [startyear [endyear]]
π¦ DESCRIPTION π¦
okay so ikiwiki-calendar creates pages that use the ikiwiki/directive/calendar directive, which means your archives can be browsed one month at a time with calendar-based navigation. it's giving organized. it's giving main character. ποΈπ
you must specify the setup file for your wiki, no skipping that. the pages get created inside its srcdir, beneath the archivebase directory that the calendar plugin uses (default is "archives"). π«Ά
to control which pages are included on the calendars, you can specify an ikiwiki/PageSpec. the default is all pages, or the pages specified by the comments_pagespec setting in the config file. a pagespec can also be specified on the command line. wanna limit it to only posts in a blog? use something like this:
posts/* and !*/Discussion
it defaults to creating calendar pages for the current year. if you specify a year, it will create pages for that year. specify a second year to create pages for a span of years. two years? iconic. π
heads up bestie: existing pages will not be overwritten by this command by default. use the -f switch to force it to overwrite any existing pages. no cap. β οΈ
β CRONTAB β
so this command only needs to be run once a year to update the archive pages for each new year, but you're recommended to set up a cron job to run it daily, at midnight. why? because then it will also update the calendars to highlight the current day. lowkey genius. πβ¨
an example crontab:
0 0 * * * ikiwiki-calendar ~/ikiwiki.setup 'posts/* and !*/Discussion'
π TEMPLATES π
this command uses two templates to generate the pages: calendarmonth.tmpl and calendaryear.tmpl. two templates, one vibe. π
π§ plugins/calendar setup option π§
most of the goals of this command can be replaced by setting up the calendar_autocreate setup option (of plugin plugins/calendar), and running:
ikiwiki --setup you.setup
the only thing that ikiwiki-calendar can do and that ikiwiki cannot is forcing page generation (using the -f switch). that's her special talent. periodt. π
π AUTHOR π
Joey Hess <joey@ikiwiki.info> β thank you for your service π«Άπ
and that's the whole page, bestie!! π¦ this lil gem came from theikiwiki-calendar(1)manual page, straight out of the General Commands Manual, and the footer was literally justikiwiki-calendar(1)again because she's self-referential like that π. now go forth and make those calendar archives slay ποΈβ¨πΈ
π¦ where this page comes from
- alpine 3.24: ikiwiki-doc 3.20260201-r0 Β· GPL-2.0-or-later
- debian bookworm: ikiwiki 3.20200202.3-1 Β· GPL-2.0-or-later
- debian trixie: ikiwiki 3.20250501-1 Β· GPL-2.0-or-later
- fedora 43: ikiwiki 3.20250501-2.fc43 Β· GPL-2.0-or-later AND BSD-2-Clause
- fedora 44: ikiwiki 3.20250501-3.fc44 Β· GPL-2.0-or-later AND BSD-2-Clause
- nixos 26.05: ikiwiki 3.20200202.3
- nixpkgs unstable: ikiwiki 3.20200202.3
- ubuntu jammy: ikiwiki 3.20200202.3-1 Β· GPL-2.0-or-later
- ubuntu noble: ikiwiki 3.20200202.3-1 Β· GPL-2.0-or-later
- ubuntu questing: ikiwiki 3.20250501-1
- ubuntu resolute: ikiwiki 3.20260201-3 Β· GPL-2.0-or-later
- ubuntu stonking: ikiwiki 3.20260201-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms