Link to my amended version of Will's plugin

master
Simon McVittie 2009-07-26 17:15:01 +01:00
parent 0c04985c07
commit 13de81ffbb
2 changed files with 18 additions and 2 deletions

View File

@ -10,7 +10,8 @@ The configuration setting for Mercurial could be something like this:
> Not that I'm opposed to the idea of a plugin that adds a Raw link
> --[[Joey]]
>> [[todo/source_link]] does this via the CGI instead of delegating
>> to gitweb/etc. --[[smcv]]
>> In [[todo/source_link]], Will does this via the CGI instead of delegating
>> to gitweb/etc. I think Will's patch is a good approach, and have improved
>> on it a bit in a git branch.
[[!tag wishlist]]

View File

@ -9,6 +9,21 @@ I just implemented this. There is one [[patch]] to the default page template, a
> by loading the index with IkiWiki::loadindex, like [[plugins/goto]] does?
> --[[smcv]]
[[!template id=gitbranch branch=smcv/getsource
author="[[Will]]/[[smcv]]"]]
>> I've applied the patch below in a git branch, fixed my earlier criticism,
>> and also fixed a couple of other issues I noticed:
>>
>> * missing pages could be presented better as a real 404 page
>> * the default Content-type should probably be UTF-8 since the rest of
>> IkiWiki tends to assume that
>> * emitting attachments (images, etc.) as text/plain isn't going to work :-)
>>
>> Any opinions on my branch? I think it's ready for merge, if Joey approves.
>>
>> --[[smcv]]
----
diff --git a/templates/page.tmpl b/templates/page.tmpl