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; my @contents;
for (@pages) { for (@pages) {
if ($pagesources{$_}) { if ($pagesources{$_}) {
my $title = $pagestate{$_}{meta}{title};
push @contents, { push @contents, {
content => IkiWiki::get_inline_content($_, $destpage), content => IkiWiki::get_inline_content($_, $destpage),
pageurl => urlto($_, $destpage), pageurl => urlto($_, $destpage),
title => pagetitle(IkiWiki::basename($_)), title => $title ? $title : pagetitle(IkiWiki::basename($_)),
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1), ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat}) mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
} }

View File

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