]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/forum/How_does_ikiwiki_remember_times__63__.mdwn
getsource: in the default template, just say "Source"
[ikiwiki.git] / doc / forum / How_does_ikiwiki_remember_times__63__.mdwn
index 3da37f3d4313688ffa26bd3042d1bfd785f91fa6..5522cbf4505b3e3213129c29d73be367eb9365b7 100644 (file)
@@ -49,6 +49,7 @@ Do I have it right?
 > > Surely it is not the _last changed time_ but the _first seen time_ of each page that is pulled out of the VCS?
 > > If the aim is to get the real creation times of items in weblogs, then the last times that the items were
 > > changed in the VCS is not going to help. -- [[seanh]]
+>>> Typo, fixed. --[[Joey]] 
 
 > > > If you want to preserve the date of a page, the best way to do it is to
 > > > use [[ikiwiki/directive/meta]] date="foo". This will survive checkouts,
@@ -79,9 +80,9 @@ Do I have it right?
     fi
 
     date=$(date)
-    echo '[[!template id=draft]]' >> "$pagename"
-    echo "[[!meta date=\"$date\"]]" >> "$pagename"
-    echo "[[!tag draft]]" >> "$pagename"
+    echo '\[[!template id=draft]]' >> "$pagename"
+    echo "\[[!meta date=\"$date\"]]" >> "$pagename"
+    echo "\[[!tag draft]]" >> "$pagename"
     git add "$pagename"
     $EDITOR "$pagename"