diff options
-rw-r--r-- | IkiWiki.pm | 2 | ||||
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | doc/tips/ikiwiki_via_gopher.mdwn | 22 |
3 files changed, 30 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index a9debfb7d..7d5668d74 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -547,7 +547,7 @@ sub urlto ($$) { #{{{ my $from=shift; if (! length $to) { - return beautify_url(baseurl($from)); + return beautify_url(baseurl($from)."index.$config{htmlext}"); } if (! $destsources{$to}) { diff --git a/debian/changelog b/debian/changelog index 721e7dfbc..11a100c0d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ikiwiki (2.51) UNRELEASED; urgency=low + + * Improve toplevel parentlink to link directly to index.html when usedirs is + disabled. + + -- Joey Hess <joeyh@debian.org> Sun, 15 Jun 2008 15:03:33 -0400 + ikiwiki (2.50) unstable; urgency=low * img: Support captions. diff --git a/doc/tips/ikiwiki_via_gopher.mdwn b/doc/tips/ikiwiki_via_gopher.mdwn new file mode 100644 index 000000000..ffea70f73 --- /dev/null +++ b/doc/tips/ikiwiki_via_gopher.mdwn @@ -0,0 +1,22 @@ +Remember gopher? Ikiwiki can be served up by this venerable protocol. + +It's pretty simple to get it going. Just install pygopherd or another gopher +server, and have ikiwiki put its pages where that server expects. For +pygopherd, it was in `/var/gopher`. + +When building the wiki, make sure to specify --no-usedirs (or equivilant in +the setup file). Gopher doesn't convert "foo/" links into +"foo/index.html", so usedirs won't work well with it; if usedirs is +disabled, browsing through the wiki via gopher will work just fine. + +Since AFAIK gopher has no equivilant to CGI, you'll need to keep a +web server around for editing pages. If you do set up a cgi, make sure to +configure `url` to something like `gopher://hostname/h/`, so that it +links back properly to gopherspace from the CGI. + +One unresolved problem: Style sheets are not loaded. The urls seem ok, but +pygopherd seems to serve them in a form that doesn't work somehow. I have +not invesitaged more, because a fully unstyled web page fits the retro +gopher better anyhow. + +--[[Joey]] |