summaryrefslogtreecommitdiff
path: root/doc/recentchanges/change_23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047._change
blob: 8ad9336d87a6758e0c5dcacdf818d325fa55918a (plain)
  1. [[!meta author="""https://www.google.com/accounts/o8/id?id=AItOawmwYptyV5ptNt8LCbMYsmpcNkk9_DRt-EY"""]]
  2. [[!meta authorurl="""https://www.google.com/accounts/o8/id?id=AItOawmwYptyV5ptNt8LCbMYsmpcNkk9_DRt-EY"""]]
  3. [[!meta title="""change to forum/Blog_posting_times_and_ikiwiki_state on ikiwiki"""]]
  4. [[!meta permalink="http://ikiwiki.info/recentchanges/#change-23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047"]]
  5. <div id="change-23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047" class="metadata">
  6. <span class="desc"><br />Changed pages:</span>
  7. <span class="pagelinks">
  8. <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/forum/Blog_posting_times_and_ikiwiki_state.mdwn;h=3e6c23241c525fb70a47afa7f14ec695c27a766f;hp=0000000000000000000000000000000000000000;hb=23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047;hpb=c3624227620f5034fa84b3cb1294a61fc08eeea9" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=forum%2FBlog_posting_times_and_ikiwiki_state&amp;do=goto" rel="nofollow">forum/Blog posting times and ikiwiki state</a>
  9. </span>
  10. <span class="desc"><br />Changed by:</span>
  11. <span class="committer">
  12. <a href="https://www.google.com/accounts/o8/id?id=AItOawmwYptyV5ptNt8LCbMYsmpcNkk9_DRt-EY" rel="nofollow">Matt</a>
  13. </span>
  14. <span class="desc"><br />Commit type:</span>
  15. <span class="committype">web</span>
  16. <span class="desc"><br />Date:</span>
  17. <span class="changedate"><span class="relativedate" title="Wed, 03 Nov 2010 19:34:53 -0400">19:34:53 11/03/10</span></span>
  18. <span class="desc"><br /></span>
  19. </div>
  20. <span class="revert">
  21. <a href="http://ikiwiki.info/ikiwiki.cgi?rev=23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047&amp;do=revert" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
  22. </span>
  23. <div class="changelog">
  24. </div>
  25. <div class="diff">
  26. <pre>
  27. diff --git a/doc/forum/Blog_posting_times_and_ikiwiki_state.mdwn b/doc/forum/Blog_posting_times_and_ikiwiki_state.mdwn
  28. new file mode 100644
  29. index 0000000..3e6c232
  30. --- /dev/null
  31. +++ b/doc/forum/Blog_posting_times_and_ikiwiki_state.mdwn
  32. @@ -0,0 +1,19 @@
  33. +What I wanted
  34. +-------------
  35. +
  36. +I thought to myself it would be nice to see from the console the dates that my ikiwiki blog posts were published. Especially as I would like to know the order of my todo list without having to view the webpage.
  37. +
  38. +What I discovered
  39. +-----------------
  40. +
  41. +Looked at the code and saw the functions for grabbing the ctime from git but couldn&#39;t reconcile them to the &quot;Posted&quot; date in the RSS feed. Some more reading and I figured out that the Posted time is taken from the UNIX ctime when first uploaded into the repository and this information is stored in the page state via a Perl storable database - indexdb. (I&#39;m sure most know this but to be clear in UNIX ctime is *not* the actual creation time of a file. UNIX has no facility for recording the actual creation time - however on first upload to the wiki it&#39;s good enough).
  42. +
  43. +Wrote a Perl script to query and sort indexdb. Now I can list my todos or blog posts in the order they appear on the web. Handy.
  44. +
  45. +However the ikiwiki state is specifically excluded via &#39;.gitignore&#39;. I work a lot on trains and not having this file in my cloned wiki means I can&#39;t list published posts or my todos in the proper order. I can get an approximation from git logs but, dam it, I want it the same!
  46. +
  47. +What can I do?
  48. +--------------
  49. +
  50. +Is it a spectacularly bad idea to include the ikiwiki state file in my cloned repo (I suspect it is). What else could be done? Can I disable pagestate somehow or force ikiwiki to always use git commit times for Posted times?
  51. +
  52. </pre>
  53. </div>
  54. <!-- 23e3e5f15e61639ccba4a7dfbab11d6fe4b9f047 -->