]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/tips/Make_calendar_start_week_on_Monday.mdwn
MacPorts is seriously lagging, pkgsrc is not
[git.ikiwiki.info.git] / doc / tips / Make_calendar_start_week_on_Monday.mdwn
1 To accomplish this on a blog setup, I ran:
3     mkdir ${SRCDIR}/templates
4     cp /usr/share/ikiwiki/templates/calendar* ${SRCDIR}/templates/
5     sed -i 's/^\(\[\[!calendar\)/\1 week_start_day="1"/' ${SRCDIR}/templates/calendar* ${SRCDIR}/sidebar.mdwn
7 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.
9 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.