diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-10-17 21:49:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-10-17 21:49:55 -0400 |
commit | fdb5da46b0122d9cb4b2611526c6c955478a80cf (patch) | |
tree | f8504c5a439ad81d8e97f13df318a382f7786ced /IkiWiki/Plugin/recentchanges.pm | |
parent | 745dc1c62f46bacda60d01283145b5baa0adfea1 (diff) | |
download | ikiwiki-fdb5da46b0122d9cb4b2611526c6c955478a80cf.tar ikiwiki-fdb5da46b0122d9cb4b2611526c6c955478a80cf.tar.gz |
Patch for anchor-based change permalinks in recent changes feed
from JasonBlevins
Diffstat (limited to 'IkiWiki/Plugin/recentchanges.pm')
-rw-r--r-- | IkiWiki/Plugin/recentchanges.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index d25c7abff..d0e4176ff 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -115,6 +115,8 @@ sub store ($$$) { #{{{ my $change=shift; my $page="$config{recentchangespage}/change_".titlepage($change->{rev}); + my $baseurl = IkiWiki::baseurl(); + my $permalink="$baseurl$config{recentchangespage}/#change-".titlepage($change->{rev}); # Optimisation to avoid re-writing pages. Assumes commits never # change (or that any changes are not important). @@ -175,6 +177,7 @@ sub store ($$$) { #{{{ commitdate => displaytime($change->{when}, "%X %x"), commitdate_raw => scalar localtime($change->{when}), wikiname => $config{wikiname}, + permalink => $permalink, ); IkiWiki::run_hooks(pagetemplate => sub { shift->(page => $page, destpage => $page, |