notes.husk.org. scribblings by Paul Mison.

2008-09-21

IndexOptions HTMLTable

text 00:24:00

Quixotically, I continue to apply my husk.org style to the things nobody looks at, rather than the things everyone does. The latest victim is the neglected husk.org/code, which now sports a fancy look, courtesy of a little HTML and the following in a .htaccess file:

IndexOptions SuppressHTMLPreamble
IndexOptions HTMLTable
IndexOptions SuppressDescription
IndexOptions NameWidth=*
HeaderName HEADER.html
ReadmeName FOOTER.html

Anyway, if anyone else wants to figure out how to make an Apache directory index vaguely pretty, have a look. (If there’s a better way to get rid of the <hr>s than post-processing on the client, let me know.)

Edit: There is! I can’t find the place I found it now, but I have the following setup instead, and it needs far less jQuery postprocessing (just two lines to shift the headers to right-alignment). Note SuppressRules in particular.

IndexOptions HTMLTable
IndexOptions SuppressHTMLPreamble
IndexOptions SuppressDescription
IndexOptions SuppressRules
IndexOptions SuppressIcon
IndexOptions NameWidth=*
IndexIgnore FOOTER.html HEADER.html ..
HeaderName HEADER.html
ReadmeName FOOTER.html

Right, that’s that done, I think. Onward.

what

more

posts

tags

notes (2)

  1. 9kopb reblogged this from blech
  2. blech posted this