update ikiwiki plugins

urosm 2024-01-14 23:03:14 +01:00
parent 8b0c384228
commit 98ccf7aa3d
2 changed files with 4 additions and 2 deletions

View File

@ -44,10 +44,11 @@ sub pagetemplate (@) {
my @contents;
for (@pages) {
if ($pagesources{$_}) {
my $title = $pagestate{$_}{meta}{title};
push @contents, {
content => IkiWiki::get_inline_content($_, $destpage),
pageurl => urlto($_, $destpage),
title => pagetitle(IkiWiki::basename($_)),
title => $title ? $title : pagetitle(IkiWiki::basename($_)),
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
}

View File

@ -57,10 +57,11 @@ sub pagetemplate (@) {
my @contents;
for (@inlinepages) {
if ($pagesources{$_}) {
my $title = $pagestate{$_}{meta}{title};
push @contents, {
content => IkiWiki::get_inline_content($_, $destpage),
pageurl => urlto($_, $destpage),
title => pagetitle(IkiWiki::basename($_)),
title => $title ? $title : pagetitle(IkiWiki::basename($_)),
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
}