ikiwiki/doc/tips/Make_calendar_start_week_on...

12 lines
691 B
Plaintext
Raw Normal View History

[[!meta date="2011-07-14 17:27:42 -0400"]]
2011-07-14 23:27:42 +02:00
To accomplish this on a blog setup, I ran:
mkdir ${SRCDIR}/templates
cp /usr/share/ikiwiki/templates/calendar* ${SRCDIR}/templates/
sed -i 's/^\(\[\[!calendar\)/\1 week_start_day="1"/' ${SRCDIR}/templates/calendar* ${SRCDIR}/sidebar.mdwn
2011-07-15 20:12:04 +02:00
where `${SRCDIR}` was the source directory for the blog. This overrides the standard templates with ones that have the `week_start_day="1"` option added. If the upstream templates change, one has to manually update the locally overriding ones.
2011-07-14 23:27:42 +02:00
I personally managed to forget about having to change also the initially auto-generated `sidebar.mdwn` page, which led to some brain activity for me.