X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/eb01a0ad92385acdfd207813f5a4a1a0a7d95146..47c9a8c3e1c38f21054219e530daa6117c759b87:/doc/tips/Make_calendar_start_week_on_Monday.mdwn?ds=sidebyside diff --git a/doc/tips/Make_calendar_start_week_on_Monday.mdwn b/doc/tips/Make_calendar_start_week_on_Monday.mdwn index 73f0abbd3..d20634d9e 100644 --- a/doc/tips/Make_calendar_start_week_on_Monday.mdwn +++ b/doc/tips/Make_calendar_start_week_on_Monday.mdwn @@ -1,9 +1,11 @@ +[[!meta date="2011-07-14 17:27:42 -0400"]] + 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 -where `${SRCDIR}` was the source directory for the blog. This overrides the standard templates with ones that has the `week_start_day="1"` option added. If the upstream templates change, one has to manually update the locally overriding ones. +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. 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.