Commit Graph

17458 Commits (723ff7a9ac3285d727b339ad17a70b45f83d1003)

Author SHA1 Message Date
Joey Hess dd64c2a9c0 sidebar plugin optimisations
The pagetemplate hook may be called multiple times, for example when pages
are inlined into a page. Sidebars were being calculated each time that
happened, only to be thrown away when the final pagetemplate hook was
called. Avoid this unnecessary work.

Remove stored sidebar content on use to save some memory.
2010-04-15 22:18:56 -04:00
Joey Hess 4efc897fdf Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-04-15 20:12:25 -04:00
Joey Hess 142e025ae4 calendar: Improved display of arrows. 2010-04-15 20:12:03 -04:00
http://smcv.pseudorandom.co.uk/ b5e7f7a67f slight clarification 2010-04-15 23:39:02 +00:00
http://smcv.pseudorandom.co.uk/ f0ed76441d some comments about this and autoindex 2010-04-15 23:36:42 +00:00
Joey Hess 425f6a8de2 reduce border 2010-04-15 19:21:01 -04:00
Joey Hess 034594fcb9 update name of libsparkline-php 2010-04-15 19:14:10 -04:00
Joey Hess c0a2eaf796 calendarmonth.tmpl: The month calendar is now put in a sidebar. 2010-04-15 18:51:50 -04:00
Joey Hess 579ee70e95 fix parameter parsing when pagespec is ommited, and year is present 2010-04-15 18:51:35 -04:00
Joey Hess 50d08bc2ae conditional: Fix bug that forced "all" mode off by default.
Commit b7351daacd introduced the bug.
2010-04-15 18:18:48 -04:00
Joey Hess a0a472d577 fix tagspec 2010-04-15 17:57:35 -04:00
Joey Hess f41ebb8862 reorg 2010-04-15 17:56:36 -04:00
Joey Hess 4c6f5a48bc fix sidebar directive parameter handling 2010-04-15 17:50:43 -04:00
Joey Hess 4bbbd77a48 typo 2010-04-15 17:49:32 -04:00
Joey Hess bbb3a8aac7 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-04-15 17:40:18 -04:00
Joey Hess d63e043f0a allow sidebar directive to enable use of sidebar page
This way, the example blog always has a sidebar on the index page,
but not the overhead of sidebars on all the other pages. And if a
user wants to, they can enable global_sidebars to switch to sidebars on
every page.
2010-04-15 17:38:13 -04:00
Joey Hess d7c164dbf2 disable global sidebars by default 2010-04-15 17:32:11 -04:00
Joey Hess 1f7175e891 sidebar: Add global_sidebars setting. 2010-04-15 17:31:50 -04:00
Joey Hess 37a0c2d40b add note if ikiwiki-calendar needs to be run 2010-04-15 16:55:20 -04:00
Joey Hess adbbd014dc Enable calendar and sidebar in auto-blog.setup. 2010-04-15 16:52:41 -04:00
Joey Hess 358fa953e1 sidebar: Now a sidebar directive can be used to override the sidebar shown on a page. 2010-04-15 16:51:27 -04:00
Joey Hess 843ce484fc update 2010-04-15 16:21:06 -04:00
Joey Hess 5143d790b0 sidebar styling improvements
Added a visible border; tuned down the whitespace/borders.

Note the use of the -1 pixel margin-top -- this makes the sidebar appear
to hang down from the line under the actions at the top of the page.
2010-04-15 16:08:33 -04:00
Joey Hess 1fbc1b518a disable feeds in raw mode 2010-04-15 15:41:56 -04:00
Joey Hess 3fbc9e411e increase sidebar width from 20 to 30 ex
This makes it big enough to fit a month calendar.
2010-04-15 15:38:23 -04:00
Joey Hess c50d218916 enable calendar by default
Makes it a bit easier to include the calendar on the sidebar template.
2010-04-15 15:31:18 -04:00
Joey Hess baaa848f6c CSS and templates for sidebar changed to use a class, not an id.
Multiple sidebars should be possible; also, I want to add a sidebar
template.
2010-04-15 15:04:17 -04:00
Joey Hess 691dab0306 typo 2010-04-15 14:45:03 -04:00
Joey Hess acd99bfe11 propigate ikiwiki setup error out 2010-04-15 14:39:07 -04:00
Joey Hess d6bfe2a25e don't link to ikiwiki-calendar, broken link on basewiki 2010-04-15 14:32:53 -04:00
Joey Hess fe733e2a42 enhance pagestats and rework example blog front page
* pagestats: Class parameter can be used to override default class for
  custom styling.
* pagestats: Use style=list to get a list of tags, scaled by use like
  in a tag cloud. This is useful to put in a sidebar.
* Rework example blog front page.
2010-04-15 14:29:14 -04:00
Joey Hess 3131433f64 calendar: Add archive_pagespec, which is used by ikiwiki-calendar to specify which pages to include on the calendar archive pages. (The pagespec can still also be specified on the ikiwiki-calendar command line.) 2010-04-15 13:40:53 -04:00
Joey Hess 81ce1cf9da remove example comments_pagespec setting
auto-blog.setup configures this automatically now
2010-04-15 13:38:24 -04:00
http://oblomov.myopenid.com/ 55d4e6bdce Reply to KA about collapsing metadata functionality 2010-04-15 13:54:54 +00:00
http://kerravonsen.dreamwidth.org/ 19700c70e5 response, alternative proposal 2010-04-15 07:39:32 +00:00
http://oblomov.myopenid.com/ 2f6da5fd2b Describe my tag type proposal 2010-04-15 07:19:47 +00:00
Joey Hess 43ed0cd07e note link types are now available 2010-04-14 16:04:52 -04:00
PaulePanter 53c8e674ac Correct comment. We want to merge the branch *doc* into branch *master* as the sample output suggests. 2010-04-14 17:38:39 +00:00
http://oneingray.myopenid.com/ e6e77d2311 Fixed a typo. 2010-04-14 16:03:20 +00:00
http://oneingray.myopenid.com/ 766ad1cb4c Fixed the double quotes. 2010-04-14 15:56:45 +00:00
http://oneingray.myopenid.com/ 43ad6bf961 More details on my personal preferences (as related to Ikiwiki.) 2010-04-14 15:54:49 +00:00
http://oneingray.myopenid.com/ 46551be9ef Give a bit more details about the Wikis (now one more) I run. 2010-04-14 15:42:25 +00:00
Joey Hess aaaef74010 update 2010-04-12 16:46:38 -04:00
Joey Hess 24fb346938 fix bug 2010-04-12 16:04:49 -04:00
Joey Hess f5da8d3aed more tests with more items 2010-04-12 15:16:57 -04:00
Joey Hess 5ce4c89dee Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2010-04-12 15:03:42 -04:00
Joey Hess df022df35e implemented the other half of this
Writing my own sort code actually was faster than the built in sort. Whee!
(That's not supposed to happen, is it. ;)

But, I need to make sure influences are calculated alright.
2010-04-12 15:02:18 -04:00
Joey Hess d50bd08439 refactor sortspec translation 2010-04-12 12:41:32 -04:00
Simon McVittie 9060cb0cf8 Space sorting orders consistently
Markdown interprets the empty lines resulting from [[!if]] as a request
that each <li> contain a <p>. For consistent spacing in the HTML, either
the unconditional items should have blank lines between (resulting in
each <li> having a <p>), or the conditional items should not (resulting
in messy source code, and no <li> having a <p>). I think the former
looks nicer.
2010-04-11 14:32:18 +01:00
Joey Hess 0bfc364a7d optimization: pagespec_match_list with no num limit matches before sorting
This can be a lot faster, since huge numbers of pages are not sorted
only to mostly be thrown away. It sped up a build of my blog by at least
5 minutes.
2010-04-11 01:30:03 -04:00