aboutsummaryrefslogtreecommitdiff
path: root/doc/tips
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawmUWmB1M35_jviFvGPYDIH-a-_Al-7OrXM <Daniel@web>2011-07-14 17:27:42 -0400
committeradmin <admin@branchable.com>2011-07-14 17:27:42 -0400
commiteb01a0ad92385acdfd207813f5a4a1a0a7d95146 (patch)
tree870bd9428a6e08e76396a54ff4a9eebc9b3be9cb /doc/tips
parentda712491adf101f4610636d43afca210859dbf2a (diff)
downloadikiwiki-eb01a0ad92385acdfd207813f5a4a1a0a7d95146.tar
ikiwiki-eb01a0ad92385acdfd207813f5a4a1a0a7d95146.tar.gz
Diffstat (limited to 'doc/tips')
-rw-r--r--doc/tips/Make_calendar_start_week_on_Monday.mdwn9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/tips/Make_calendar_start_week_on_Monday.mdwn b/doc/tips/Make_calendar_start_week_on_Monday.mdwn
new file mode 100644
index 000000000..73f0abbd3
--- /dev/null
+++ b/doc/tips/Make_calendar_start_week_on_Monday.mdwn
@@ -0,0 +1,9 @@
+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.
+
+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.