summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fdb5da4)
Need to handle the case where url is not set.
my $change=shift;
my $page="$config{recentchangespage}/change_".titlepage($change->{rev});
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).
# Optimisation to avoid re-writing pages. Assumes commits never
# change (or that any changes are not important).
commitdate => displaytime($change->{when}, "%X %x"),
commitdate_raw => scalar localtime($change->{when}),
wikiname => $config{wikiname},
commitdate => displaytime($change->{when}, "%X %x"),
commitdate_raw => scalar localtime($change->{when}),
wikiname => $config{wikiname},
- permalink => $permalink,
+
+ $template->param(permalink => $config{url}."$config{recentchangespage}/#change-".titlepage($change->{rev}))
+ if exists $config{url};
+
IkiWiki::run_hooks(pagetemplate => sub {
shift->(page => $page, destpage => $page,
template => $template, rev => $change->{rev});
IkiWiki::run_hooks(pagetemplate => sub {
shift->(page => $page, destpage => $page,
template => $template, rev => $change->{rev});
move it to toggle.js in the javascript underlay.
* relativedate: New javascript-alicious plugin that makes all dates display
relative, in a very nice way, if I say so myself.
move it to toggle.js in the javascript underlay.
* relativedate: New javascript-alicious plugin that makes all dates display
relative, in a very nice way, if I say so myself.
+ * recentchanges: Make feed links point back to anchors on the recentchanges
+ page. (JasonBlevins)
-- Joey Hess <joeyh@debian.org> Fri, 17 Oct 2008 20:11:02 -0400
-- Joey Hess <joeyh@debian.org> Fri, 17 Oct 2008 20:11:02 -0400
>>>>>> Here's my attempt at a [[patch]] for anchor-based change permalinks:
>>>>>> <http://pastie.org/295016>.
>>>>>> --[[JasonBlevins]], 2008-10-17
>>>>>> Here's my attempt at a [[patch]] for anchor-based change permalinks:
>>>>>> <http://pastie.org/295016>.
>>>>>> --[[JasonBlevins]], 2008-10-17
[[!meta authorurl="""<TMPL_VAR AUTHORURL>"""]]
</TMPL_IF>
[[!meta title="""change to<TMPL_LOOP NAME="PAGES"> <TMPL_VAR PAGE></TMPL_LOOP> on <TMPL_VAR WIKINAME>"""]]
[[!meta authorurl="""<TMPL_VAR AUTHORURL>"""]]
</TMPL_IF>
[[!meta title="""change to<TMPL_LOOP NAME="PAGES"> <TMPL_VAR PAGE></TMPL_LOOP> on <TMPL_VAR WIKINAME>"""]]
[[!meta permalink="<TMPL_VAR PERMALINK>"]]
[[!meta permalink="<TMPL_VAR PERMALINK>"]]
<div id="change-<TMPL_VAR REV>" class="metadata">
<div class="metadata">
<span class="desc"><br />Changed pages:</span>
<div id="change-<TMPL_VAR REV>" class="metadata">
<div class="metadata">
<span class="desc"><br />Changed pages:</span>