]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
Add file cretion times to the index file.
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index 646e254a59cba73e84db87b291d53546e7631741..b3dfc364d12805e5bc3e24005fff2d5c4197588d 100644 (file)
@@ -139,12 +139,8 @@ sub absolute_urls ($$) { #{{{
 
        $url=~s/[^\/]+$//;
        
-       $content=~s{<a\s+href="([^"]+)"}{
-               "<a href=\"$url$1\""
-       }ieg;
-       $content=~s{<img\s+src="([^"]+)"}{
-               "<img src=\"$url$1\""
-       }ieg;
+       $content=~s/<a\s+href="(?!http:\/\/)([^"]+)"/<a href="$url$1"/ig;
+       $content=~s/<img\s+src="(?!http:\/\/)([^"]+)"/<img src="$url$1"/ig;
        return $content;
 } #}}}
 
@@ -171,7 +167,7 @@ sub genrss ($$$) { #{{{
        );
        
        $template->param(
-               title => pagetitle(basename($page)),
+               title => $config{wikiname},
                pageurl => $url,
                items => \@items,
        );
@@ -296,6 +292,7 @@ sub refresh () { #{{{
                        push @add, $file;
                        $links{$page}=[];
                        $pagesources{$page}=$file;
+                       $pagectime{$page}=time;
                }
        }
        my @del;